Quote Cancel Workflow
⛔ Old “GRFQ” Workflow
Successful Quote Cancellation
API Request Returns 204 OK, no Response Body
Event is sent to
quote
channel withkind: CANCELED
Event is sent to
quote_book
channel withkind: REMOVED
Error Quote Cancellation
API Returns 400
No Websockets Messages
✅ New “OB” Workflow
Successful Quote Cancellation
API Request Returns 202 OK, including
action_id
field withstatus: PENDING
Event is sent to
quote
channel withkind: CANCELED
Event is sent to
quote_book
channel withkind: REMOVED
Event is sent to
quote_status
channel with matchingaction_id
andsuccess: 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_status
WebSocket 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 Cancellationquote
Channel, Successfully Cancelled Quotequote_book
Channel, Successfully Cancelled Quotequote_status
Channel, Successful API Request
Last updated