Quote Cancel Workflow
⛔ Old “GRFQ” Workflow
Successful Quote Cancellation
- API Request Returns 204 OK, no Response Body
- Event is sent to
quotechannel withkind: CANCELED - Event is sent to
quote_bookchannel withkind: REMOVED
Error Quote Cancellation
- API Returns 400
- No Websockets Messages
✅ New “OB” Workflow
Successful Quote Cancellation
- API Request Returns 202 OK, including
action_idfield withstatus: PENDING - Event is sent to
quotechannel withkind: CANCELED - Event is sent to
quote_bookchannel withkind: REMOVED - Event is sent to
quote_statuschannel with matchingaction_idandsuccess: true
Error Quote Cancellation - Quote Unavailable
- API Returns HTTP 400, Error 3308 “Unavailable Quote”
- No Websockets Messages
Error Quote Cancellation - Too Late to Cancel (Fails API Validation)
- API Returns HTTP 400, Error 3306 “Too late to cancel”
- No Websockets Messages
Error Quote Cancellation - Too Late to Cancel (API validation success, fails OrderBook Validation)
- API Returns HTTP 202 Accepted
- Event is sent to
quote_statusWebSocket Channel with Error 3306 “Too late to cancel”
💡 No WebSocket message is sent with the details of the pending quote, these details are only returned in the API Response
💬 Sample Messages
-
[DELETE] /quotes/{quote_id}/API Response, Pending Quote Cancellation -
quoteChannel, Successfully Cancelled Quote -
quote_bookChannel, Successfully Cancelled Quote -
quote_statusChannel, Successful API Request
