Skip to main content
Subscribe to one pair and amount. The server re-quotes it every 300 ms and pushes a new quote whenever the output changes. This is what the Voxel app uses to keep the price on screen fresh.

Subscribe

Send one JSON frame after connecting. Sending another frame replaces the subscription on the same socket.

Messages

Each push is a full quote response with no envelope:
Errors arrive on the same socket as a small object:
Tell the two apart by the presence of error. After an error the subscription stays open; send a new frame to change the pair or amount.

Example

To re-price a new amount, send another subscribe frame. There is no need to reconnect.

Behaviour

  • Only changes are pushed. A quiet pair can go seconds without a message. The socket is still live.
  • Reconnect with backoff on close. The app reconnects from 500 ms up to 15 s.
  • One subscription per socket. Open a socket per pair you watch.
For pool-level and USD price data across many tokens, use the market stream.