2024-05-14 21:50:57 -04:00
# Go Tastytrade Open API Wrapper
2025-05-07 23:50:46 -04:00

2024-05-14 21:50:57 -04:00
2024-05-14 22:04:10 -04:00
Go API wrapper for the Tastytrade Open API
2024-05-14 21:50:57 -04:00
## Table of Contents
1. [Introduction ](#introduction )
2. [Installation ](#installation )
3. [Usage ](#usage )
4. [Testing ](#testing )
5. [Contributing ](#contributing )
6. [License ](#license )
## Introduction
This project provides a Go wrapper for the Tastytrade Open API. It allows developers to interact with Tastytrade's financial data and services in a more Go-idiomatic way, abstracting away the details of direct HTTP requests and responses.
## Installation
To install this project, you can use `go get` :
```bash
2025-05-08 13:16:38 -04:00
go get sancus.carpanet.net/sjc/tastytrade
2024-05-14 21:50:57 -04:00
```
Then, import it in your Go code:
```
2025-05-08 13:16:38 -04:00
import "sancus.carpanet.net/sjc/tastytrade"
2024-05-14 21:50:57 -04:00
```
## Usage
Here's a basic example of how to use this wrapper to get account balances:
```
2024-05-14 22:04:10 -04:00
api := tastytrade.NewTastytradeAPI("your-api-key")
2024-05-14 21:50:57 -04:00
balances, err := api.GetAccountBalances("your-account-number")
if err != nil {
log.Fatal(err)
}
fmt.Println(balances)
```
## Testing
To run the tests for this project, you can use go test:
```bash
go test ./...
```
## Contributing
Contributions to this project are welcome! Please submit a pull request or open an issue on GitHub.
## License
2025-05-07 11:52:32 -04:00
This project is released into the public domain under the Unlicense. For more information, please refer to the LICENSE file or visit https://unlicense.org.