Quote Creation Workflow
⛔ Old “GRFQ” Workflow
Successful Quote Creation
- API Request Returns 200 OK with
status: OPEN - Event is sent to
quotechannel withkind: NEW - Event is sent to
quote_bookchannel withkind: ADDED
Error Quote Creation
- API Returns 400
- No Websockets Messages
✅ New “OB” Workflow
Successful Quote Creation
- API Request Returns 202 OK, including
action_idfield withstatus: PENDING - Event is sent to
quotechannel withkind: NEW - Event is sent to
quote_bookchannel withkind: ADDED - Event is sent to
quote_statuschannel with matchingaction_idandsuccess: true
Error Quote Creation - API Validations Fail
- API Returns 400
Error Quote Creation - Order Book Validations Fail
- API Request Returns 202 OK, including
action_idfield withstatus: PENDING - Event is sent to
quotechannel withkind: CANCELEDandstatus: CLOSED - Event is sent to
quote_statuschannel, with matchingaction_id, andsuccess: false
No WebSocket message is sent with the details of the pending quote, these details are only returned in the API Response
💬 Sample Messages
-
[POST] /rfqs/{rfq_id}/quotes/API Response, Pending Quote Creation -
quoteChannel, Successfully Created Quote -
quote_bookChannel, Successfully Created Quote -
quote_statusChannel, Successful API Request -
quote_statusChannel, Error API Request
