tigeropen

Query market data and execute stock, option, and futures trades via the Tiger Brokers OpenAPI Python SDK.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tigeropen, tigermcp, quantlib, and includes references (resource) components.

What problem does it solve? Building trading applications against the Tiger Brokers OpenAPI requires navigating SDK authentication, market data endpoints, order workflows, option chains, real-time push subscriptions, and CLI/MCP tooling. This Skill gives AI coding tools complete, bilingual (Chinese/English) operational knowledge of the tigeropen SDK so users can query quotes, place orders, and stream data without reading the full API documentation. ## Core Features & Use Cases - Market Data & Trading: Query real-time quotes, K-lines, depth, ticks, capital flow, and fundamentals; place, preview, modify, and cancel stock/option/futures orders with paper-trading safety defaults. - Options Workflows: Retrieve option chains with Greeks, build single-leg and multi-leg combo strategies (spreads, straddles, iron condors, covered calls), and use option pricing calculators. - Real-time Push, CLI & MCP: Subscribe to streaming quote/order/position/asset updates via PushClient, run the tigeropen CLI for terminal-based queries, or expose the API as MCP tools for Cursor, Claude Code, and other AI editors. - Use Case: Ask the AI to scan a watchlist for cash-secured put opportunities with specific delta and IV filters, preview the order with estimated margin and commission, then place the trade after confirmation. ## Quick Start Ask the AI to use the tigeropen skill to fetch the latest real-time quote and 30 daily K-lines for AAPL using your Tiger Brokers developer credentials.

Frequently Asked Questions about tigeropen

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

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

Create a TradeClient with your TigerOpenClientConfig, build an order using helpers like limit_order(), then call preview_order() to check margin and commission before place_order(). The skill defaults to paper trading accounts unless live trading is explicitly requested.

How do I get real-time stock quotes with tigeropen?

Use QuoteClient.get_stock_briefs() with a list of symbols for snapshot quotes, or PushClient.subscribe_quote() for streaming updates over WebSocket. Quote permissions must be purchased separately and API permissions are independent of the mobile app.

Does tigeropen support options trading and option chains?

Yes, it supports US and HK options including expiration queries, option chains with Greeks via OptionFilter, single-leg orders, and multi-leg combos like vertical spreads, straddles, iron condors, and covered calls. HK options require symbol mapping through get_option_symbols().

Can I use the Tiger Brokers API with Cursor or Claude Code?

Yes, install the tigermcp package and run it via uvx to expose Tiger API functions as MCP tools. Add the server to your editor's MCP config with your TIGEROPEN_TIGER_ID, private key, and account environment variables, optionally enabling read-only mode.

Why does the tigeropen API return error code 4 or 5?

Code 4 indicates access forbidden, usually from invalid credentials, IP whitelist issues, or exceeded subscription limits. Code 5 means rate limiting; the API enforces rolling 60-second windows of 10-120 requests per minute depending on the endpoint, so implement backoff retries.

What private key format does the tigeropen Python SDK require?

The Python SDK accepts both PKCS#1 and PKCS#8 private keys as DER base64 strings without PEM headers. You can load a PEM file with read_private_key() or convert formats using openssl commands.