README update to module-scope example, switched workflow to use main branch
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
# Go Tastytrade Open API Wrapper
|
||||
|
||||
Go API wrapper for the Tastytrade Open API
|
||||
|
||||

|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user