Loading...
Loading...
Compare original and translation side by side
老虎量化开放平台 Java SDK 完整技能集 / Complete AI skill set for Tiger Brokers OpenAPI (Java)
安全警告 / Safety Warning: 交易涉及真实资金。生成交易代码时默认使用模拟账户(Paper Trading),除非用户明确要求实盘。实盘下单前必须与用户确认订单详情。 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.
com.tigerbrokers:openapi-java-sdk老虎量化开放平台 Java SDK 完整技能集 / 老虎证券OpenAPI(Java版)完整AI技能集
安全警告: 交易涉及真实资金。生成交易代码时默认使用模拟账户(Paper Trading),除非用户明确要求实盘。实盘下单前必须与用户确认订单详情。 交易涉及真实资金,除非用户明确要求实盘交易,否则生成交易代码时默认使用模拟账户,实盘下单前务必与用户确认订单详情。
com.tigerbrokers:openapi-java-sdkimport 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));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));| 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 |
| 任务 | 参考文档 |
|---|---|
| 首次配置、SDK安装、鉴权设置 | quickstart.md |
| 获取股票/期权/期货行情、K线、选股器 | quote.md |
| 下单/改单/撤单、查询持仓/资产 | trade.md |
| 期权链、希腊值、到期日查询 | option.md |
| 通过WebSocket获取实时流数据 | push.md |
| 账户信息、资产、持仓、盈亏分析 | account.md |
| 常见称呼 | 代码 Symbol |
|---|---|
| 腾讯 | 00700 |
| 阿里巴巴、阿里 | 09988 |
| 美团 | 03690 |
| 小米 | 01810 |
| 京东 | 09618 |
| 比亚迪 | 01211 |
| 快手 | 01024 |
| 百度 | 09888 |
| 网易 | 09999 |
| 中芯国际 | 00981 |
| MINIMAX | 00100 |
| 智谱 | 02513 |
| 常见称呼 | 代码 Symbol |
|---|---|
| 腾讯 | 00700 |
| 阿里巴巴、阿里 | 09988 |
| 美团 | 03690 |
| 小米 | 01810 |
| 京东 | 09618 |
| 比亚迪 | 01211 |
| 快手 | 01024 |
| 百度 | 09888 |
| 网易 | 09999 |
| 中芯国际 | 00981 |
| MINIMAX | 00100 |
| 智谱 | 02513 |
| 常见称呼 | 代码 Symbol |
|---|---|
| 苹果 / Apple | AAPL |
| 特斯拉 / Tesla | TSLA |
| 英伟达 / NVIDIA | NVDA |
| 微软 / Microsoft | MSFT |
| 谷歌 / Google | GOOGL |
| 亚马逊 / Amazon | AMZN |
| Meta | META |
| 台积电 / TSM | TSM |
| AMD | AMD |
| 老虎证券 / Tiger / TIGR | TIGR |
| 阿里巴巴(美股)/ BABA | BABA |
| 京东(美股)/ JD | JD |
| 拼多多 / PDD | PDD |
| 标普500 ETF / SPY | SPY |
| 纳指 ETF / QQQ | QQQ |
| 常见称呼 | 代码 Symbol |
|---|---|
| 苹果 / Apple | AAPL |
| 特斯拉 / Tesla | TSLA |
| 英伟达 / NVIDIA | NVDA |
| 微软 / Microsoft | MSFT |
| 谷歌 / Google | GOOGL |
| 亚马逊 / Amazon | AMZN |
| Meta | META |
| 台积电 / TSM | TSM |
| AMD | AMD |
| 老虎证券 / Tiger / TIGR | TIGR |
| 阿里巴巴(美股)/ BABA | BABA |
| 京东(美股)/ JD | JD |
| 拼多多 / PDD | PDD |
| 标普500 ETF / SPY | SPY |
| 纳指 ETF / QQQ | QQQ |