Modify Order via WebSocket
To modify orders on Rails platform, use the WebSocket v2 API and subscribe to the Order Creation Stream. This new WebSocket API supports every request and notification from the legacy Order Creation WebSocket. The specifications and behavior remain the same.Order Modification Workflow
Order modification is done by submitting a Modify Order request. You will receive four responses in sequence:- Acknowledgment: Confirms the request was received and validates basic parameters
- Original Order Modified Notice: Confirms the original order has been successfully cancelled and is no longer present in the system
- New Order Pending Notice: Confirms a new order was created with the updated parameters, pending acceptance
- Creation Confirmation: Confirms the new order was accepted and created in the order book
| Acknowledgment | Original Order Modified Notice | New Order Pending Notice | Creation Confirmation | |
|---|---|---|---|---|
| Result Type | modifyOrder | modifyOrder | modifyOrder | createOrder |
| Body | modifying order | original order modified | new order created, pending acceptance | order accepted |
| Order Status | modifying | modified | pending | active |
| Status Code | 202 | 200 | 200 | 200 |
| API Quota Used | Included | Not Included | Not Included | Not included |
clientRequestId can be used to correlate acknowledgment, confirmation, and any error responses for a single request.