Skip to main content

Quote Stream

WSProductionwss://ws.btse.com/ws/otcTestnetwss://testws.btse.io/ws/otc

Subscribe to continuous OTC price quotes. Prices are pushed as market conditions change. Requires WebSocket authentication.

To accept a quote, use the buyQuoteId or sellQuoteId from the stream with the Accept Quote REST endpoint.

REST vs WebSocket β€” when to use which:

  • REST POST /public-api/otc/v1/quotes β€” request a single quote with a 5-second TTL. This is the standard one-shot RFQ workflow.
  • WebSocket quote stream (this channel) β€” subscribe to a continuous price feed for high-frequency consumers. Independent of the REST RFQ.

Subscribe payload differs from spot/futures. OTC uses op: quote with a top-level symbol (and optional side, quantity); it does not use the spot/futures {op: "subscribe", args: [...]} form. Sending a spot/futures-style payload is silently acked with {event: "subscribe", channel: []} and produces no data.

// βœ… OTC subscribe
{ "op": "quote", "symbol": "BTC-USD", "quantity": { "quantity": 1, "currency": "BTC" } }

// ❌ Spot/futures style β€” does NOT work for OTC
{ "op": "subscribe", "args": ["quote"] }

Operations:

  • quote: subscribe to quote stream
  • unsubscribe-quote: unsubscribe from a specific quote stream
  • unsubscribe-quote-all: unsubscribe from all quote streams
example