Subscribing to a Symbol

To start streaming prices, send a signed subscribe message on the prices topic identifying the symbol you want. On success the server returns a confirmation, then begins sending price-update messages for that symbol.

Use Listing Available Symbols first to get valid ASSET/QUOTE symbol strings.

⚠️

RFQ liquidity product only. Symbols and prices on this feed are specific to the RFQ product and do not relate to CLOB instruments.

Request

Every message must be authenticated — see Authentication. For the price feed, body is required and identifies the symbol.

FieldTypeRequiredDescription
messageTypestringSubscription message type — subscribe
topicstringTopic to subscribe to — prices for the price feed
bodyobjectObject identifying which symbol will be subscribed to (required for the price feed)
keystringYour API public key
passphrasestringYour API passphrase
timestampstringTime in seconds since Unix epoch (same value used to sign)
signaturestringBase64-encoded HMAC-SHA256 signature

Example request:

{
  "messageType": "subscribe",
  "topic": "prices",
  "key": "API_PUBLIC_KEY",
  "passphrase": "API_PASSPHRASE",
  "timestamp": "1720000000",
  "signature": "base64_encoded_hmac",
  "body": { "symbol": "BTC/USD" }
}

Response

On success the server returns a subscribe message confirming the symbol feed.

FieldTypeDescription
messageTypestringsubscribe
bodystringConfirmation message, e.g. successfully subscribed to the BTC/USD feed

Example response:

{
  "messageType": "subscribe",
  "body": "successfully subscribed to the BTC/USD feed"
}

After this confirmation, price-update messages begin arriving for the symbol.

Subscribing to multiple symbols

Send one signed subscribe message per symbol — each with its own body (and therefore its own signature). All subscriptions share the same connection, and you keep them all alive with a single ping every 20 seconds.

Next steps