NEW 1.28 Replace Order
POST {{URL_ORIGIN}}/api/operations/replace-order
Replace Order API allows you to replace an order for mp.
For more details about replace order - see here
Replace order- Fields
Field | Type | Description |
---|---|---|
instrumentId | Int String | Original order instrument Id |
orderId | Int String | Exchange order ID to be replaced |
quantity | Decimal String | Similar to the trading API |
price optional | Decimal String | Similar to the trading API |
timeInForce optional | Enum | Simialar to the trading API |
expiryDate optional | UTC Time | Similar to the trading API |
expiryDay optional | String | Similar to the trading API |
minQuantity optional | Decimal String | Similar to the trading API |
stopPrice optional | Decimal String | Similar to the trading API |
stpAction optional | Enum | Similar to the trading API |
parties optional | [] Object | Simialar to the trading API |
Relace Order - Error Codes
Validations: same as replaceOrder, with the below changes:
- Skip validations 1007 & 1008 &1011 (Authentication related)
Additional validations:
Code | Message |
---|---|
10001 | Permission denied |
Request Body
{"orderId"=>"71", "instrumentId"=>"123", "quantity"=>"10", "price"=>"1", "timeInForce"=>"GTC"}
RESPONSES
status: OK
{"originalOrderId":"71","newOrderId":"72"}