API reference

API reference

The streaming API is defined by an AsyncAPI 3.0 contract.

  • Fetch the contract: /docs/asyncapi.yaml, served as application/yaml. Each connection's welcome frame advertises this URL. A client can connect, read welcome.spec, and fetch the contract from there.

Channels

All channels multiplex over one connection to /ws.

ChannelAccessPayload
orderbook:<market>publicL2 book (snapshot + deltas)
ticker:<market>publiclast price, best bid/ask, 24h stats
candles:<market>:<interval>publicOHLCV (1s/1m/1h/1d)
marketspublicinstrument directory
statspublichealth + liveness heartbeat
ordersprivateyour order updates
accountprivateyour balances
depositsprivateyour deposit status

Client ops: subscribe / unsubscribe / submit (the write path) / hello / usage. Server events: welcome / subscribed / submitted / error.

Data frames are { channel, type, data }, where type is snapshot (full state) or update (a delta). Live updates are coalesced into a JSON array.

A rendered AsyncAPI viewer is planned for this page. Until then, the YAML contract above is the source of truth, and the guides cover the common flows.