{
"type": "exchange_status",
"sending_ts_ms": 1733047200123,
"sid": 3,
"seq": 1,
"msg": {
"trading_active": false,
"ts_ms": 1733047200000
}
}Exchange Status
Sent when trading is paused or resumed exchange-wide, or when the exchange status changes.
Trading messages carry trading_active. Exchange status messages carry exchange_active.
Both flags mean the same as in GET /trade-api/v2/margin/exchange/status,
and trading is open exchange-wide only while both are true. A message can repeat the current
value. Per-market halts and trading-hours closes are sent on market_lifecycle_v2, not on this
channel; a market is open only while both channels show it open.
There is no snapshot: after subscribing, read GET /trade-api/v2/margin/exchange/status for
the current values, and do both again after every reconnect. A message received after
subscribing supersedes that response for the flag it carries.
{
"type": "exchange_status",
"sending_ts_ms": 1733047200123,
"sid": 3,
"seq": 1,
"msg": {
"trading_active": false,
"ts_ms": 1733047200000
}
}API key authentication required for margin WebSocket connections.
Exchange-wide trading and exchange status changes