README update to module-scope example, switched workflow to use main branch
This commit is contained in:
4
.github/workflows/build.yaml
vendored
4
.github/workflows/build.yaml
vendored
@@ -2,9 +2,9 @@ name: Build
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ main ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
# Go Tastytrade Open API Wrapper
|
# Go Tastytrade Open API Wrapper
|
||||||
|
|
||||||
Go API wrapper for the Tastytrade Open API
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
Go API wrapper for the Tastytrade Open API
|
||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
1. [Introduction](#introduction)
|
1. [Introduction](#introduction)
|
||||||
2. [Installation](#installation)
|
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:
|
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")
|
balances, err := api.GetAccountBalances("your-account-number")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user