Marketdata
Websocket marketdata
WSS
Quickstart
1. Get a token
2. Connect to the WebSocket
Pass the token as anAuthorization header on the WebSocket upgrade request. Invalid or missing tokens are rejected with HTTP 401 before the connection is established.
gateway.sandbox.architect.exchange with gateway.architect.exchange for production.
3. Subscribe
Once connected, send a subscribe message to start receiving market data:level: "TRADES":
trades and ticker fields (both
default true) independently suppress trade or ticker delivery. For example, a
book-only feed (no trades, no ticker):
subscribe at a book level (LEVEL_1/LEVEL_2/LEVEL_3), you receive:
- Ticker updates (
t = "s") — unlessticker: false - Trade updates (
t = "t") — unlesstrades: false - Order book updates matching your selected
level:LEVEL_1->t = "1"LEVEL_2->t = "2"LEVEL_3->t = "3"
subscribe at level: "TRADES", you receive only trade updates (t = "t") — no ticker or order book events. The trades and ticker fields have no effect on a TRADES subscription.
After a successful subscribe_candles, you receive candle updates (t = "c").
Details
Request ID (rid)
ridis used to correlate request/response pairs.- Server acknowledgements and request errors include the same
ridas your request. - Market data events do not include
rid.
Symbol fields in events
- Ticker, trade, and order book events use
sfor symbol. - Candle events use
symbol.
Estimated funding rate
- Ticker events (
t = "s") carry an optionalefobject with the live estimated funding rate, present only for symbols that have a live index feed configured (e.g. WTI-PERP). ef.statusis one ofready,settlement_pending, orunavailable:ready— a current estimate is available. All numeric fields (funding_rate,funding_amount,benchmark_price,settlement_price) are populated andef.reasonis absent.settlement_pending— funding settlement is in progress for the symbol, so the live estimate is temporarily suppressed. The numeric fields are null andef.reasonindicates a settlement is pending.unavailable— no current estimate can be produced. The numeric fields are null andef.reasonexplains why — for example the index or mark price data needed for the estimate is not yet available, is insufficient, or is too stale, or no estimate has been published for the symbol yet.
- When no estimate applies to a symbol, the
effield is omitted entirely.
Heartbeat events
- The server emits heartbeat events (
t = "h"):