From 79e1507a567703e30507b8d482743008763eed98 Mon Sep 17 00:00:00 2001 From: Options Vamp Date: Tue, 14 May 2024 22:04:10 -0400 Subject: [PATCH] README update to module-scope example, switched workflow to use main branch --- .github/workflows/build.yaml | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1662d58..6453ae0 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,9 +2,9 @@ name: Build on: push: - branches: [ master ] + branches: [ main ] pull_request: - branches: [ master ] + branches: [ main ] jobs: diff --git a/README.md b/README.md index 1280b71..e68d1f7 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Go Tastytrade Open API Wrapper -Go API wrapper for the Tastytrade Open API - ![Build](https://github.com/optionsvamp/tastytrade/actions/workflows/build.yaml/badge.svg) +Go API wrapper for the Tastytrade Open API + ## Table of Contents 1. [Introduction](#introduction) 2. [Installation](#installation) @@ -35,7 +35,7 @@ import "github.com/optionsvamp/tastytrade" Here's a basic example of how to use this wrapper to get account balances: ``` -api := NewTastytradeAPI("your-api-key") +api := tastytrade.NewTastytradeAPI("your-api-key") balances, err := api.GetAccountBalances("your-account-number") if err != nil { log.Fatal(err)