README update to module-scope example, switched workflow to use main branch

This commit is contained in:
Options Vamp
2024-05-14 22:04:10 -04:00
parent 5601d953c4
commit 79e1507a56
2 changed files with 5 additions and 5 deletions

View File

@@ -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)