中文

Rate Limits

To protect the server and prevent malicious attacks, all interfaces that need to send requests to the Tiger Brokers OpenAPI server have frequency limitations.

The interfaces in the API are divided into low-frequency interfaces, medium-frequency interfaces, and high-frequency interfaces. Low-frequency interfaces are limited to 10 times/minute, medium-frequency interfaces are limited to 60 times/minute, and high-frequency interfaces are limited to 120 times/minute. Requests that exceed the frequency limit will be rejected by the server. The counting cycle is a continuous 60-second rolling window.

The error message triggered by rate limiting is as follows:

code=4 msg=rate limit error(current limiting interface:<interface_name>, up to 60 times per minute)
⚠️

CAUTION

  1. If the interface request frequency is too high and continues to make requests persistently, the account may be automatically added to the blacklist by the system. Accounts added to the blacklist will not be able to continue making interface calls.
  2. If you have high-frequency interface call requirements, you can communicate with us separately here

High-Frequency Interface List (120 times/minute)

Interface Method
Get Order ID (create_order)
Place Order (place_order)
Modify Order (modify_order)
Cancel Order (cancel_order)
Get Orders (get_orders/get_order)
Get Open Orders (get_open_orders)
Get Cancelled Orders (get_cancelled_orders)
Get Filled Orders (get_filled_orders)
Get Timeline (get_timeline)
Get Real-time Quotes (get_stock_briefs)
Get Trade Ticks (get_trade_ticks)
Get Option Briefs (get_option_briefs)
Get Option Trade Ticks (get_option_trade_ticks)
Get Future Real-time Quotes (get_future_briefs)

Medium-Frequency Interface List (60 times/minute)

Interface Method
Get Option Chain (get_option_chain)
Get Option Expirations (get_option_expirations)
Get Depth Quotes (get_depth_quote)
Get Single Contract (get_contract)
Get Batch Contracts (get_contracts)
Get Derivative Contracts (get_derivative_contracts)
Get Shortable Stocks List (quote_shortable_stocks)
Get Stock Trading Information (get_trade_metas)
Get Future Trading Times (get_future_trading_times)
Get Current Future Contract (get_current_future_contract)
Get Managed Accounts (get_managed_accounts)
Get Global Account Assets (get_assets)
Get Prime/Paper Trading Account Assets (get_prime_assets)
Get Positions (get_positions)
Get Transaction Reports (get_transactions)
Get Historical Timeline Data (get_timeline_history)
Get Stock K-Line (get_bars)
Get Option K-Line (get_option_bars)
Get Future K-Line (get_future_bars)

Low-Frequency Interface List (10 times/minute)

Interface Method
Grab Quote Permission (grab_quote_permission)
Get Quote Permission List (get_quote_permission)
Get Market Status (get_market_status)
Get Stock Symbols (get_symbols)
Get Stock Symbol Names (get_symbol_names)
Get Stock Details (get_stock_details)
Get Future Exchanges (get_future_exchanges)
Get Trading Rank (get_trade_rank)