Quick Start
Install the public release
go get github.com/tigerfintech/[email protected]Go 1.20 or newer is required. Enable access in the Developer Center, then review User and Account Types, Market Data Permissions and Limits, Markets and Trading Rules, and Rate Limits.
package main
import (
"fmt"
"log"
"github.com/tigerfintech/openapi-go-sdk/config"
"github.com/tigerfintech/openapi-go-sdk/quote"
)
func main() {
cfg, err := config.NewClientConfig()
if err != nil { log.Fatal(err) }
qc := quote.NewQuoteClientFromConfig(cfg)
states, err := qc.GetMarketState("US")
if err != nil { log.Fatal(err) }
fmt.Printf("%#v\n", states)
}Client constructors
func quote.NewQuoteClient(httpClient *client.HttpClient) *quote.QuoteClient
func quote.NewQuoteClientFromConfig(cfg *config.ClientConfig) *quote.QuoteClient
func trade.NewTradeClient(httpClient *client.HttpClient, account string) *trade.TradeClient
func trade.NewTradeClientFromConfig(cfg *config.ClientConfig) *trade.TradeClient
func push.NewPushClient(cfg *config.ClientConfig, opts ...push.PushClientOption) *push.PushClientUpdated about 13 hours ago
Did this page help you?
