tigeropen-typescript

Build TypeScript trading applications using the Tiger Brokers OpenAPI SDK for quotes, orders, and push subscriptions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @tigeropenapi/tigeropen, and includes references (resource) components.

What problem does it solve? Integrating the Tiger Brokers OpenAPI in TypeScript involves many subtle conventions—request objects versus positional arguments, millisecond timestamps versus date strings, root-only package exports, and int64 order ID precision—that cause frequent integration errors. This Skill gives AI coding tools accurate, bilingual guidance for SDK setup, market data queries, trading, and real-time push subscriptions. ## Core Features & Use Cases - SDK Setup & Auth: Install @tigeropenapi/tigeropen, configure tigerId, RSA private key, and account via code, properties file, or environment variables. - Market Data & Trading: Query real-time quotes, K-lines, depth, options chains with Greeks, and futures; place, modify, and cancel orders with a mandatory preview-and-confirm safety workflow defaulting to paper trading. - Real-time Push & Account Management: Subscribe to WebSocket streams for quotes, orders, positions, and assets; manage assets, fund transfers, and option exercises. - Use Case: Ask the AI to write a Node.js script that subscribes to AAPL and TSLA quotes, places a paper limit order after previewing commission, and monitors order status via push callbacks. ## Quick Start Ask the AI to set up the Tiger Brokers TypeScript SDK with your credentials and fetch real-time quotes for a list of stock symbols.

Frequently Asked Questions about tigeropen-typescript

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

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

Create an order with helpers like limitOrder(account, symbol, secType, action, quantity, price), call previewOrder to check commissions, then submit via placeOrder on a TradeClient. Default to a paper account and confirm order details before any live submission.

How do I get real-time stock quotes in TypeScript with Tiger OpenAPI?

Create a QuoteClient from an HttpClient and call getRealTimeQuote or getBrief with a request object like { symbols: ['AAPL'] }. Methods return strongly typed Brief objects, so no JSON.parse is needed.

Does the tigeropen npm package support ESM and CommonJS?

Yes, the scoped @tigeropenapi/tigeropen package supports both ESM and CommonJS on Node.js 16+. Import everything from the package root, since subpath imports like dist/esm are not exported and will throw ERR_PACKAGE_PATH_NOT_EXPORTED.

Why does my Tiger OpenAPI order ID lose precision in JavaScript?

Order IDs are int64 values that can exceed Number.MAX_SAFE_INTEGER. Pass the ID as a string to modifyOrder or cancelOrder to avoid precision loss, since the id parameter accepts number or string.

How do I subscribe to real-time quote push via WebSocket?

Create a PushClient, set callbacks such as onQuote and onConnect, then call connect and subscribeQuote with a symbol array inside onConnect. The SDK auto-restores subscriptions after reconnect, so do not re-subscribe in onConnect.

What are the limitations of the Tiger Brokers TypeScript SDK for options?

There is no placeComboOrder method, so multi-leg strategies require manually building an OrderRequest with contractLegs and comboType. Quote APIs use millisecond timestamps for expiry while order objects use YYYYMMDD strings, and HK options need symbol mapping via getOptionSymbols.