Quote Service
Stream Quote Updates
Subscribe to real-time best-quote updates for a quote request via Server-Sent Events.
GET
Open a Server-Sent Events (SSE) stream to receive real-time best-quote updates for a specific quote request. As market makers submit, update, and withdraw quotes, you receive the current best offer automatically.
Sent whenever the quote book changes (new quote submitted, quote updated, quote withdrawn, or quote expired). The
When no quotes are active,
Sent when the quote request transitions out of the
Immediately after
The quote request was committed into a real RFQ. Use
The quote request was cancelled (by you, via Cancel).
The quote request reached its
Authentication
Bearer token required. Pass your JWT in theAuthorization header.
Path Parameters
The quote request ID (UUID).
SSE Event Types
best_quote
Sent whenever the quote book changes (new quote submitted, quote updated, quote withdrawn, or quote expired). The book_seq increments monotonically so you can detect missed updates.
best_quote is null:
status
Sent when the quote request transitions out of the active state (committed, cancelled, or expired). The stream closes after this event. committed_rfq_id is the created RFQ id when status is committed, and null otherwise.
status, the stream also emits one terminal event matching the outcome, then closes. Listen for either the generic status event or the specific one below.
committed
The quote request was committed into a real RFQ. Use rfq_id to follow the trade through confirmation and settlement on the WebSocket rfq:{rfq_id} channel.
cancelled
The quote request was cancelled (by you, via Cancel).
expired
The quote request reached its expires_at without being committed.
Integration Guide
- Open the SSE stream after creating or updating a quote request.
- On each
best_quoteevent, update your displayed payout odds and store thebook_seqand best quoteid. - When the user is ready to commit, pass
expected_version,displayed_quote_id,displayed_quote_book_seq, andmin_payout_odds_seento the Commit endpoint. - On a terminal event, close the stream and handle the outcome. When the request commits, read the new RFQ id from
committed_rfq_id(on thestatusevent) orrfq_id(on thecommittedevent), then follow the trade on the WebSocketrfq:{rfq_id}channel.
Errors
| Status | Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Missing or invalid JWT. |
| 403 | FORBIDDEN | You do not own this quote request. |
| 404 | NOT_FOUND | Quote request not found. |
