Tiger API

🯩 What is Tiger API

Tiger API is a local WebSocket server embedded in the Tiger.com Windows terminal that allows external systems (e.g., screeners) to control the interface of the terminal.

πŸ”— Main Purpose

The setLinkSymbol command instantly opens the specified symbol (e.g., BTCUSDT) in the specified link group (e.g., A) inside the terminal.

βš™οΈ How to Enable Tiger API in the Terminal

  1. Go to: Settings β†’ Local Signal Server

  2. Enable the option: Enable Signal Server

  3. Press Save

  4. Default WebSocket port: 7819

πŸ“‘ WebSocket Request Format

{
  "type": "setLinkSymbol",
  "e": "BINANCE",         // Exchange
  "m": "SPOT",            // Market type: SPOT or FUTURES
  "symbol": "BTCUSDT",    // Trading pair
  "linkGroup": "A"        // Link group: A–11
}
  • All fields are required

  • Case-insensitive

  • Response normalizes values (e.g., Spot, Futures)

βœ… Example of a Successful Response

❌ Error Examples

1. Invalid Command Type

Result: error + connection is closed (code: 400, WebSocket 1007)

2. Invalid JSON Format

Result: error + connection_close

3. Validation Errors (do not close WS connection)

  • Empty fields

  • Unknown symbol

  • Invalid linkGroup (e.g., AX)

🟒 Ping/Pong Support

1. Text-based:

2. JSON-based:

πŸ“˜ Reference Tables

Exchanges (e):

  • BINANCE, BINANCE-FUT, BYBIT, OKX, MEXC, BITMEX, Bitfinex, Gate.io, Bitget, TigerX

Market Types (m):

  • SPOT, FUTURES

  • Letters A–Z (e.g., A = #FFF9C4)

  • Digits 0–11 (e.g., 0 = #FFAA00)

πŸ“Œ Error Handling Table

Error Type
Code
Action

Invalid JSON

400

WS closed (1007)

Validation errors

400

WS remains open

πŸ“Œ Recommendations for Clients

  • Always validate JSON locally before sending

  • On parsing errors β†’ reconnect using exponential backoff

  • Send regular ping messages to keep the connection alive

Last updated