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 three responses in sequence:- Acknowledgment: Confirms the request was received and validates basic parameters
- Modification Confirmation: Confirms the original order was successfully cancelled and 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 | Modification Confirmation | Creation Confirmation | |
|---|---|---|---|
| Result Type | modifyOrder | modifyOrder | createOrder |
| Body | modifying order | order modified, pending acceptance | order accepted |
| Order Status | modifying | pending | active |
| Status Code | 202 | 200 | 200 |
| API Quota Used | Included | Not Included | Not included |
clientRequestId can be used to correlate acknowledgment, confirmation, and any error responses for a single request.