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:subscribe, you receive:
- Ticker updates (
t = "s") - Trade updates (
t = "t") - Order book updates matching your selected
level:LEVEL_1->t = "1"LEVEL_2->t = "2"LEVEL_3->t = "3"
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.
Heartbeat events
- The server emits heartbeat events (
t = "h"):