Skip to main content
PaperDrill’s public WebSocket streams market updates without authentication.

Choose channels

Use the exact symbol returned by GET /markets.

Subscribe

Send one SUBSCRIBE message after the connection opens. One message can contain multiple channels.
The server does not send a subscription acknowledgement. Messages begin when the selected market changes. To stop receiving a channel, send the same params with UNSUBSCRIBE.

Interpret messages

Trades

Tickers and candles

Ticker messages use the same shape as the REST ticker. Candle messages contain time, symbol, open, high, low, close, volume, and event: "candle".

Depth

Depth messages contain only changed levels. Follow the snapshot-and-buffer procedure in Maintain a local order book; do not treat one depth message as a complete book.

Reconnect safely

Connections can close during a deployment or network interruption. Reconnect with exponential backoff and jitter, then resubscribe to every desired channel.
Fetch a fresh REST snapshot after reconnecting before trusting a local order book.