mcpField
T
tigeropen-java

tigeropen-java

github.com/tigerfintechOther16199 installsUpdated 6d ago
Repository

About tigeropen-java

A reference skill for Java developers using the Tiger Brokers OpenAPI SDK, covering market data, trading, options, real-time updates, and account data. Its task-focused guides include a safety rule to default to Paper Trading and confirm order details before live orders.

Key features

  1. 01Guides SDK setup and authentication
  2. 02Queries quotes, K-lines, and screeners
  3. 03Manages orders, positions, and assets
  4. 04Looks up option chains and Greeks
  5. 05Subscribes to updates with WebSocketClient
  6. 06Supports account analytics and P&L queries

Use cases

  1. 01Set up a Java SDK client
  2. 02Retrieve stock, option, or futures data
  3. 03Write order placement and management code
  4. 04Subscribe to live market or account updates

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/tigerfintech/tigeropen-skill --skill tigeropen-java

After installing, type/tigeropen-javain Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
account.md
option.md
push.md
quickstart.md
quote.md
trade.md

Details

From the project README

Tiger Open API Java SDK

老虎量化开放平台 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.

Language Rules / 语言规则

根据用户输入语言自动回复。用户使用英文提问则用英文回复,使用中文提问则用中文回复。技术术语(代码、API 名称、参数名)保持原文不翻译。 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

TaskReference
First time setup, SDK install, auth configquickstart.md
Get stock/option/future quotes, K-lines, screenerquote.md
Place/modify/cancel orders, check positions/assetstrade.md
Option chains, Greeks, expiration datesoption.md
Real-time streaming data via WebSocketpush.md
Account info, assets, positions, P&L analyticsaccount.md

Common Symbols / 常见标的速查

当用户使用中文名称或英文简称时,按下表映射。不在表中的标的根据上下文判断。 Map user's natural language to symbols. For unlisted symbols, infer from context.

港股 HK
常见称呼代码 Symbol
腾讯00700
阿里巴巴、阿里09988
美团03690
小米01810
京东09618
比亚迪01211
快手01024
百度09888
网易09999
中芯国际00981
MINIMAX00100
智谱02513
美股 US
常见称呼代码 Symbol
苹果 / AppleAAPL
特斯拉 / TeslaTSLA
英伟达 / NVIDIANVDA
微软 / MicrosoftMSFT
谷歌 / GoogleGOOGL
亚马逊 / AmazonAMZN
MetaMETA
台积电 / TSMTSM
AMDAMD
老虎证券 / Tiger / TIGRTIGR
阿里巴巴(美股)/ BABABABA
京东(美股)/ JDJD
拼多多 / PDDPDD
标普500 ETF / SPYSPY
纳指 ETF / QQQQQQ

Comments

Markdown supported