RFQ (Request for Quote)
Real-time quote workflow for OTC trading with external dealers
RFQ (Request for Quote)
RFQ is the primary workflow for OTC trading on PRIME. It allows clients to request real-time quotes from external dealers, with PRIME acting as intermediary.
Overview
The RFQ workflow operates over WebSocket and consists of three phases:
- Request quotes - Client requests quotes for a specific pair and quantity
- Receive streaming quotes - Dealers stream bid/ask quotes in real-time
- Accept or stop - Client accepts a quote to execute the trade, or stops the session
Important Notes
Field naming convention: Unlike other WebSocket messages, RFQ messages use PascalCase field names (e.g.,
RfqID,Quantity,Token) rather than camelCase. This applies to both requests and responses.
WebSocket Topics
All RFQ topics require authentication.
Start Quoting
Request quotes for a trade.
Topic: {subAccountId}@quotes
Request
Quotes Event
Streaming quotes from dealers. These arrive continuously while the RFQ session is active.
Termination Event
Sent when the RFQ session ends (timeout, no dealers available, etc.).
Accept Quote
Accept a received quote to execute the trade.
Topic: {subAccountId}@accept
Request
Confirmation Event
Sent when the quote is successfully accepted and trade executed.
Rejection Event
Sent when the quote acceptance fails (quote expired, insufficient balance, etc.).
Stop Quoting
Cancel an active RFQ session without accepting any quote.
Topic: {subAccountId}@stop
Request
The d field contains just the RFQ ID as a string.