Quote Creation Workflow
⛔ Old “GRFQ” Workflow
Successful Quote Creation
- API Request Returns 200 OK with
status: OPEN
- Event is sent to
quote
channel withkind: NEW
- Event is sent to
quote_book
channel withkind: ADDED
Error Quote Creation
- API Returns 400
- No Websockets Messages
✅ New “OB” Workflow
Successful Quote Creation
- API Request Returns 202 OK, including
action_id
field withstatus: PENDING
- Event is sent to
quote
channel withkind: NEW
- Event is sent to
quote_book
channel withkind: ADDED
- Event is sent to
quote_status
channel with matchingaction_id
andsuccess: true
Error Quote Creation - API Validations Fail
- API Returns 400
Error Quote Creation - Order Book Validations Fail
- API Request Returns 202 OK, including
action_id
field withstatus: PENDING
- Event is sent to
quote
channel withkind: CANCELED
andstatus: CLOSED
- Event is sent to
quote_status
channel, 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 -
quote
Channel, Successfully Created Quote -
quote_book
Channel, Successfully Created Quote -
quote_status
Channel, Successful API Request -
quote_status
Channel, Error API Request