tigeropen-go

Build Go trading applications with Tiger Brokers OpenAPI for quotes, orders, and real-time push.

1.5k|337|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/qusong0627/QuantMind --skill tigeropen-go-qusong0627
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tigeropen-go
Source: https://github.com/qusong0627/QuantMind/tree/main/skills/tigeropen-go
Command: npx skills add https://github.com/qusong0627/QuantMind --skill tigeropen-go-qusong0627

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires github.com/tigerfintech/openapi-go-sdk, and includes references (resource) components.

What problem does it solve? Integrating the Tiger Brokers OpenAPI in Go requires knowing exact SDK method signatures, typed request structs, and account-specific behaviors; this Skill provides verified bilingual reference guides so AI coding tools generate correct trading code without hallucinating methods. ## Core Features & Use Cases - Market Data Queries: Real-time quotes, K-lines, depth, trade ticks, capital flow, and corporate actions via the quote client. - Trading Operations: Place, modify, and cancel stock, futures, and options orders including multi-leg combo strategies, with mandatory preview-and-confirm safety rules for live trading. - Real-time Push & Account Management: WebSocket subscriptions for quotes, orders, positions, and assets, plus asset queries, segment fund transfers, and funding history. - Use Case: Ask the AI to write a Go program that subscribes to AAPL real-time quotes and places a paper-trading limit order, and it produces compilable code using the correct model.LimitOrder and push.Callbacks APIs. ## Quick Start Ask the AI to write a Go program using the Tiger Brokers OpenAPI SDK that fetches real-time quotes for AAPL and TSLA with a paper trading account.

Frequently Asked Questions about tigeropen-go

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I place an order with the Tiger Brokers Go SDK?

Create an order with helpers like model.LimitOrder(account, symbol, secType, action, quantity, price), then call tc.PreviewOrder to check commission and margin, and finally tc.PlaceOrder to submit. For live trading, always confirm order details with the user before placing.

How to get real-time stock quotes in Go with Tiger Brokers API?

Create a quote client with quote.NewQuoteClient(httpClient) and call GetRealTimeQuote with a model.BriefRequest containing the symbol list. It returns typed []model.Brief structs with fields like LatestPrice, BidPrice, AskPrice, and Volume.

Does the Tiger Brokers Go SDK support options trading?

Yes, it supports option expirations, chains with Greeks, quotes, K-lines, single-leg orders, and multi-leg combo strategies like vertical spreads and straddles via model.ComboOrder. There is no PlaceComboOrder method; combos go through PlaceOrder.

What Go version and credentials does the Tiger OpenAPI SDK require?

The SDK requires Go 1.20 or later and the github.com/tigerfintech/openapi-go-sdk module. You need a Tiger ID, an RSA private key, and an account number, configurable via code, a properties file, or environment variables.

Why does my Tiger Brokers push subscription stop after reconnect?

It should not; the SDK automatically restores subscriptions after reconnecting. Place the initial subscribe calls inside the OnConnect callback and do not re-subscribe on subsequent connects, or you will create duplicate subscriptions.

Can I call Tiger Brokers API endpoints not wrapped by the Go SDK?

Yes, use httpClient.ExecuteRaw with the API name and a JSON string as the second argument. It returns a JSON string, unlike the wrapped methods which return strongly typed structs.