Tiger Quant Open Platform TypeScript SDK Complete Skill Set / Complete AI skill set for Tiger Brokers OpenAPI (TypeScript)
Safety Warning / Safety Warning: Trading involves real money. When generating trading code, default tosimulated account, unless the user explicitly requests live trading. Before placing a live order, you must confirm the order details with the user. Trading involves real money. Default to Paper Trading when generating trading code. Always confirm order details before live orders.
- Docs: https://docs.itigerup.com/docs/prepare
- npm:
npm install @tigeropenapi/tigeropen| Node.js 16+, ESM/CommonJS
Language Rules / Language Rules
Reply automatically based on the user's input language. Keep technical terms (code, API names, parameter names) in their original form without translation. Reply in the user's language. Keep technical terms (code, API names, parameters) as-is.
Reference Guides
- Quickstart — SDK install, config, client setup, error handling
- 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
import {
createClientConfig,
HttpClient,
QuoteClient,
TradeClient,
} from '@tigeropenapi/tigeropen';
// 1. 创建配置 / Create config
const config = createClientConfig({
tigerId: 'your_tiger_id',
privateKey: 'your_rsa_private_key',
account: 'your_account',
});
// 2. 查询行情 / Query quotes(注意:接收请求对象,不是数组)
const httpClient = new HttpClient(config);
const qc = new QuoteClient(httpClient);
const quotes = await qc.getBrief({ symbols: ['AAPL', 'TSLA'] });
console.log(quotes);
// 3. 交易操作 / Trading
const tc = new TradeClient(httpClient, config.account);
const orders = await tc.getOrders({ limit: 20 });
console.log(orders);
When to Use Each Reference
| Task | Reference |
|---|---|
| First time setup, SDK install, auth config | quickstart.md |
| Get stock/option/future quotes, K-lines | quote.md |
| Place/modify/cancel orders, check positions/assets | trade.md |
| Real-time streaming data via WebSocket | push.md |
| Account info, assets, fund transfer, deposit/withdrawal | account.md |
| Option chain, Greeks, expirations, multi-leg orders | option.md |
Common Symbols / Common Symbols Quick Reference
Hong Kong Stocks HK
| Common Name | Code Symbol |
|---|---|
| Tencent | 00700 |
| Alibaba | 09988 |
| Meituan | 03690 |
| Xiaomi | 01810 |
US Stocks US
| Common Name | Code Symbol |
|---|---|
| Apple / Apple | AAPL |
| Tesla / Tesla | TSLA |
| NVIDIA / NVIDIA | NVDA |
| Microsoft / Microsoft | MSFT |
| Google / Google | GOOGL |
| Amazon / Amazon | AMZN |
| Meta | META |
| Tiger Brokers / TIGR | TIGR |
| S&P 500 ETF / SPY | SPY |
| Nasdaq ETF / QQQ | QQQ |