tigeropen-java

Build Java trading applications with the Tiger Brokers OpenAPI SDK for quotes, orders, and account data.

1.5k|337|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/qusong0627/QuantMind --skill tigeropen-java-qusong0627
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tigeropen-java
Source: https://github.com/qusong0627/QuantMind/tree/main/skills/tigeropen-java
Command: npx skills add https://github.com/qusong0627/QuantMind --skill tigeropen-java-qusong0627

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires io.github.tigerbrokers:openapi-java-sdk, and includes references (resource) components.

What problem does it solve? Integrating a brokerage API into a Java application requires navigating authentication, dozens of request classes, market-specific symbol rules, and WebSocket subscription patterns. This Skill provides complete, bilingual reference guides for the Tiger Brokers OpenAPI Java SDK so AI coding tools can generate correct trading and market-data code on the first attempt. ## Core Features & Use Cases - Market Data Queries: Retrieve stock, futures, options, fund, and crypto quotes, K-lines, depth order books, trade ticks, screeners, and fundamentals across US and HK markets. - Trading & Account Management: Place, modify, and cancel orders (market/limit/stop/algo), query positions, assets, P&L analytics, and perform segment fund transfers. - Options Workflows: Query expiration dates, option chains with Greeks filters, real-time option quotes, and HK option symbol mapping. - Real-time Push: Subscribe to quote, depth, tick, K-line, order, position, and asset change events via WebSocketClient with the ApiComposeCallback interface. - Use Case: Ask the AI to "query the latest quote for Tencent (00700) and place a paper-trading limit buy order" and receive working Java code using TigerHttpClient with correct symbol mapping and safety defaults. ## Quick Start Ask the AI to write Java code using the Tiger Brokers OpenAPI SDK to query a stock quote or place a paper-trading order, providing your tigerId, account, and private key configuration.

Frequently Asked Questions about tigeropen-java

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I place an order with the Tiger Brokers Java SDK?

Configure ClientConfig with your tigerId, account, and private key, create a TigerHttpClient, then build a ContractItem and order request to place market, limit, stop, or algo orders. Default to a paper trading account and confirm order details before any live submission.

How to subscribe to real-time stock quotes via Tiger OpenAPI WebSocket?

Create a WebSocketClient with your ClientConfig and an ApiComposeCallback implementation, call connect(), then subscribeQuote with a set of symbols like AAPL or 00700. Quote updates arrive through the quoteChange and quoteAskBidChange callback methods.

Does the Tiger Brokers Java SDK support options trading?

Yes, it supports US and HK options including expiration date queries, option chains with Greeks filters, real-time quotes, depth, ticks, and K-lines. HK options require symbol mapping via OptionSymbolRequest since underlyings differ from stock codes, such as 00700 mapping to TCH.

What Java version and dependencies does the Tiger OpenAPI SDK require?

The SDK requires Java JDK 1.8 or higher and is installed via Maven or Gradle using the io.github.tigerbrokers:openapi-java-sdk artifact. You also need a Tiger Brokers developer account to obtain a tigerId and RSA private key for authentication.

Why do HK option queries fail with the stock symbol?

HK option underlying codes differ from stock codes, so querying with 00700 directly fails. Call OptionSymbolRequest first to map the stock code to its option symbol, for example 00700 maps to TCH.HK, then use that symbol in option chain and quote requests.

Can I query account positions and assets with the Tiger Java SDK?

Yes, use PositionsRequest for holdings and PrimeAssetRequest for standard or paper account assets, including buying power, margin, and P&L. Global accounts use the ASSETS method instead, and historical asset analytics are available via PrimeAnalyticsAssetRequest.