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
Go to:
Settings → Local Signal ServerEnable the option:
Enable Signal ServerPress
SaveDefault 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
{
"title": "Successful request",
"message": "Symbol linked successfully.",
"request": {
"e": "BINANCE",
"m": "Spot",
"symbol": "BTCUSDT",
"linkGroup": "A",
"type": "SetLinkSymbol"
},
"response": {
"type": "successfully",
"timestamp": "..."
}
}❌ Error Examples
1. Invalid Command Type
{
"type": "InvalidType"
}Result: error + connection is closed (code: 400, WebSocket 1007)
2. Invalid JSON Format
{
"type": "setLinkSymbol", e: "BINANCE"... // broken syntax
}Result: error + connection_close
3. Validation Errors (do not close WS connection)
Empty fields
Unknown
symbolInvalid
linkGroup(e.g.,AX)
🟢 Ping/Pong Support
1. Text-based:
ping → pong2. JSON-based:
{
"type": "ping",
"title": "...",
"message": "..."
}
→
{
"title": "Pong",
"message": "Response 'pong' to 'ping'."
}📘 Reference Tables
Exchanges (e):
e):BINANCE, BINANCE-FUT, BYBIT, OKX, MEXC, BITMEX, Bitfinex, Gate.io, Bitget, TigerX
Market Types (m):
m):SPOT, FUTURES
Link Groups (linkGroup):
linkGroup):Letters
A–Z(e.g., A =#FFF9C4)Digits
0–11(e.g., 0 =#FFAA00)
📌 Error Handling Table
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
pingmessages to keep the connection alive
Last updated