Files
tastytrade/README.md
sjc d2dc45af46
All checks were successful
Continuous Integration / CI (push) Successful in 1m25s
Update Repo Location
Update repo location for carpanet.net
2025-05-08 13:16:38 -04:00

1.4 KiB

Go Tastytrade Open API Wrapper

Build

Go API wrapper for the Tastytrade Open API

Table of Contents

  1. Introduction
  2. Installation
  3. Usage
  4. Testing
  5. Contributing
  6. 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:

go get sancus.carpanet.net/sjc/tastytrade

Then, import it in your Go code:

import "sancus.carpanet.net/sjc/tastytrade"

Usage

Here's a basic example of how to use this wrapper to get account balances:

api := tastytrade.NewTastytradeAPI("your-api-key")
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:

go test ./...

Contributing

Contributions to this project are welcome! Please submit a pull request or open an issue on GitHub.

License

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.