tigeropen-cpp

v2026.09.25

Tiger Brokers OpenAPI C++ SDK — complete skills for AI coding tools. Covers SDK build setup, market data queries, trading, and real-time push subscriptions. Use when building trading applications in C++, querying market data, placing orders, or integrating Tiger Brokers API. 老虎证券 OpenAPI C++ SDK 完整技能集。涵盖 SDK 编译配置、行情查询、交易、实时推送订阅。适用于用 C++ 构建交易应用、查询行情数据、下单交易。 用户提到以下关键词时自动使用 / Auto-activate on these keywords: 行情、报价、K线、买入、卖出、下单、撤单、交易、持仓、资金、账户、订单、期权、期货、推送、订阅、C++ SDK、tigeropen cpp、openapi cpp、quote、price、K-line、order、buy、sell、trade、position、asset、option、future、push

GitHub
安装命令
npx skhub add tigerfintech/tigeropen-cpp
Markdown
SKILL.md

Tiger Open API C++ SDK

老虎量化开放平台 C++ SDK 完整技能集 / Complete AI skill set for Tiger Brokers OpenAPI (C++)

安全警告 / Safety Warning: 交易涉及真实资金。生成交易代码时默认使用模拟账户,除非用户明确要求实盘。实盘下单前必须与用户确认订单详情。 Trading involves real money. Default to Paper Trading when generating trading code. Always confirm order details before live orders.

Language Rules / 语言规则

根据用户输入语言自动回复。技术术语(代码、API 名称、参数名)保持原文不翻译。 Reply in the user's language. Keep technical terms (code, API names, parameters) as-is.

Reference Guides

  • Quickstart — Build setup, CMake, config, client creation
  • Market Data — Real-time quotes, K-lines, depth, options, futures
  • Trading — Place/modify/cancel orders, positions, assets
  • Real-time Push — WebSocket push for quotes, orders, positions
  • Account Management — Account list, assets, positions, fund transfer, deposit/withdrawal
  • Options Trading — Option chain, expirations, Greeks, multi-leg strategies

Quick Start

#include "tigerapi/client_config.h"
#include "tigerapi/quote_client.h"
#include "tigerapi/trade_client.h"

using namespace TIGER_API;

int main() {
    // 1. 创建配置 / Create config
    ClientConfig config(false, "path/to/config/");

    // 2. 查询行情 / Query quotes
    QuoteClient qc(config);
    value symbols = value::array();
    symbols[0] = value::string(U("AAPL"));
    symbols[1] = value::string(U("TSLA"));
    value quotes = qc.get_brief(symbols);
    ucout << quotes << std::endl;

    // 3. 交易操作 / Trading
    TradeClient tc(config);
    value orders = tc.get_orders();
    ucout << orders << std::endl;

    return 0;
}

When to Use Each Reference

TaskReference
First time setup, build, CMake, auth configquickstart.md
Get stock/option/future quotes, K-linesquote.md
Place/modify/cancel orders, check positions/assetstrade.md
Real-time streaming data via WebSocketpush.md
Account info, assets, fund transfer, deposit/withdrawalaccount.md
Option chain, Greeks, expirations, multi-leg ordersoption.md

Common Symbols / 常见标的速查

港股 HK

常见称呼代码 Symbol
腾讯00700
阿里巴巴09988
美团03690
小米01810

美股 US

常见称呼代码 Symbol
苹果 / AppleAAPL
特斯拉 / TeslaTSLA
英伟达 / NVIDIANVDA
微软 / MicrosoftMSFT
谷歌 / GoogleGOOGL
亚马逊 / AmazonAMZN
MetaMETA
老虎证券 / TIGRTIGR
标普500 ETF / SPYSPY
纳指 ETF / QQQQQQ
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.25

发布时间

Sep 25, 2026

分类

未分类

许可证

未指定

源路径

skills/tigeropen-cpp

默认分支

main

最新提交

c4082b2

Tree SHA

415c286