tigeropen-cpp

Build C++ 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-cpp-qusong0627
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tigeropen-cpp
Source: https://github.com/qusong0627/QuantMind/tree/main/skills/tigeropen-cpp
Command: npx skills add https://github.com/qusong0627/QuantMind --skill tigeropen-cpp-qusong0627

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Integrating the Tiger Brokers OpenAPI C++ SDK involves tricky build configuration (pinned Boost, Protobuf, and Abseil versions), verbose cpprestsdk JSON handling, and undocumented wrapper quirks. This Skill provides complete, verified guidance for building, querying market data, placing orders, and subscribing to real-time push streams without trial-and-error. ## Core Features & Use Cases - Build & Setup Guidance: CMake integration, dependency version pinning (Boost 1.86, Protobuf 5.28.3, Abseil 20240722.0), and cross-platform build scripts for macOS, Linux, and Windows. - Market Data & Trading: Real-time quotes, K-lines, depth, option chains with Greeks, futures, order placement/modification/cancellation, positions, and account assets. - Real-time Push: WebSocket subscriptions for quotes, orders, positions, and assets with callback-based event handling. - Use Case: A developer asks how to buy 100 shares of AAPL with a limit order in C++. The Skill generates code using ContractUtil and OrderUtil, enforces the preview-then-confirm safety flow, and defaults to a paper trading account. ## Quick Start Ask the AI to write a C++ program using the Tiger Brokers OpenAPI SDK that fetches real-time quotes for AAPL and TSLA and prints the latest prices.

Frequently Asked Questions about tigeropen-cpp

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

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

Build a Contract with ContractUtil (e.g. stock_contract), create an Order with OrderUtil (limit_order or market_order), then call trade_client->place_order(order). For live trading, call preview_order first and confirm details with the user before placing.

How do I get real-time stock quotes in C++ with Tiger OpenAPI?

Create a QuoteClient with a ClientConfig, build a JSON array of symbols using web::json::value, and call get_brief(symbols). The result is a web::json::value you parse with as_array() and as_double().

What dependencies does the Tiger Brokers C++ SDK require?

The SDK requires C++14, CMake 3.15+, Boost 1.86.0, cpprestsdk, Protobuf 5.28.3, and Abseil pinned at 20240722.0. Newer Abseil versions break the C++14 build, so use the bundled build scripts that pin every dependency.

Why is my option chain filter not working in the C++ SDK?

The get_option_chain wrapper accepts an option_filter argument but never reads it, so filters silently have no effect. To filter by Greeks, IV, or open interest, construct the request manually and call the raw post(OPTION_CHAIN, obj) method.

Does the Tiger C++ SDK support real-time streaming data?

Yes, the IPushClient provides WebSocket push for quotes, depth, K-lines, ticks, orders, positions, and assets. Create it via IPushClient::create_push_client, register callbacks, and subscribe inside the connected callback since subscriptions only work after connection.

How do I trade Hong Kong options with the Tiger OpenAPI?

HK option underlying symbols differ from stock codes, so first call get_option_symbols(U("HK")) to get the mapping (e.g. 00700 maps to TCH.HK). Then use the mapped symbol for expirations, chains, and order placement.