API v2Trading API
System
Is the connection alive, connected to the broker, and logged in?
Health of this account's connection.
Is the connection alive, connected to the broker, and is the trading
account logged in? Always returns HTTP 200 (even when the
connection is down) — the failure detail is in the body. Read the
top-level status field: ready, starting (logged in, still
syncing), degraded (connection up but broker/login down), or down
(connection not answering). Uptime monitors that need an HTTP status
code instead can use the open /healthz (fully ready) and /livez
(answering at all) endpoints.
X-API-Key<token>
Account owner's API key — full, or read-only (read-only keys get 403 on the trading endpoints). The ?api_key= query parameter is accepted too (WebSocket clients have no other option).
In: header
Response Body
curl -X GET "https://api.api2trade.com/v2/{account_id}/status"{
"account": {
"authError": "string",
"currency": "string",
"loggedIn": true,
"login": 0,
"tradeAllowed": true,
"type": "string"
},
"bridge": {
"asyncTrades": true,
"dealerRttMsEwma": 0,
"lateTradeVerdicts": 0,
"nonTradeQueueDepth": 0,
"oldestTradeInFlightAgeMs": 0,
"symbolsSynced": true,
"tradeDeferred": 0,
"tradeEaHeartbeatAgeMs": 0,
"tradeEaReady": true,
"tradeInFlight": 0,
"tradeQueueDepth": 0,
"tradeRequestsSent": 0,
"version": "string"
},
"broker": {
"connected": true,
"server": "string"
},
"serverTime": "string",
"status": "string",
"terminal": {
"alive": true,
"build": 0,
"pingMs": 0
}
}