SuperAPI AI Directory

tigeropen-java

Agents & models

View repository

Updated 10-16 02:30

About this skill

Tiger Open API Java SDK

Tiger Quant Open Platform Java SDK Complete Skill Set / Complete AI skill set for Tiger Brokers OpenAPI (Java)

Safety Warning / Safety Warning: Trading involves real money. When generating trading code, default toPaper Trading Account(Paper Trading), 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 account when generating trading code unless the user explicitly requests live trading. Always confirm order details with the user before live orders.

Language Rules / Language Rules

Reply automatically based on the user's input language. If the user asks in English, reply in English; if the user asks in Chinese, reply in Chinese. 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

This skill is organized into focused reference files. Load the relevant guide based on your task:

  • Quickstart — SDK install (Maven/Gradle), authentication, client setup, basic examples, object reference, strategy examples
  • Market Data — Stock/futures/fund/crypto/warrant quotes, K-lines, depth, ticks, scanner, fundamentals, corporate actions
  • Trading — Place orders (market/limit/stop/algo), order management, contracts, assets, positions, fund transfers
  • Options — Option expiration dates, chains, Greeks, K-line, tick data
  • Real-time Push — Subscribe to quote/depth/tick/K-line/order/position/asset changes via WebSocketClient
  • Account — Account queries, assets, positions, analytics, P&L

Quick Start

import com.tigerbrokers.stock.openapi.client.config.ClientConfig;
import com.tigerbrokers.stock.openapi.client.https.client.TigerHttpClient;
import com.tigerbrokers.stock.openapi.client.https.request.quote.QuoteMarketRequest;
import com.tigerbrokers.stock.openapi.client.https.response.quote.QuoteMarketResponse;

// 1. Configure / 配置
ClientConfig clientConfig = ClientConfig.DEFAULT_CONFIG;
clientConfig.tigerId = "your_tiger_id";
clientConfig.defaultAccount = "your_account";
clientConfig.privateKey = "your_private_key_content";

// 2. Create client / 创建客户端
TigerHttpClient client = TigerHttpClient.getInstance().clientConfig(clientConfig);

// 3. Query market status / 查询市场状态
QuoteMarketResponse response = client.execute(QuoteMarketRequest.newRequest(Market.US));

When to Use Each Reference

Task Reference
First time setup, SDK install, auth config quickstart.md
Get stock/option/future quotes, K-lines, screener quote.md
Place/modify/cancel orders, check positions/assets trade.md
Option chains, Greeks, expiration dates option.md
Real-time streaming data via WebSocket push.md
Account info, assets, positions, P&L analytics account.md

Common Symbols / Common Symbols Quick Reference

When the user uses a Chinese name or English abbreviation, map it according to the table below. For symbols not in the table, infer from context. Map user's natural language to symbols. For unlisted symbols, infer from context.

Hong Kong Stocks HK

Common Name Symbol
Tencent 00700
Alibaba, Ali 09988
Meituan 03690
Xiaomi 01810
JD.com 09618
BYD 01211
Kuaishou 01024
Baidu 09888
NetEase 09999
SMIC 00981
MINIMAX 00100
Zhipu 02513

US Stocks US

Common Name Symbol
Apple / Apple AAPL
Tesla / Tesla TSLA
NVIDIA / NVIDIA NVDA
Microsoft / Microsoft MSFT
Google / Google GOOGL
Amazon / Amazon AMZN
Meta META
TSMC / TSM TSM
AMD AMD
Tiger Brokers / Tiger / TIGR TIGR
Alibaba (US) / BABA BABA
JD.com (US) / JD JD
Pinduoduo / PDD PDD
S&P 500 ETF / SPY SPY
Nasdaq ETF / QQQ QQQ