Logo
Admin API API Documentation

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

  1. Validations: same as replaceOrder, with the below changes:

    1. Skip validations 1007 & 1008 &1011 (Authentication related)
  2. Additional validations:

Code Message
10001 Permission denied

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "originalOrderId": "71", "newOrderId": "72" }



Curl
curl -X POST 'URL_ORIGIN/api/operations/replace-order' -d '{"orderId":"71","instrumentId":"123","quantity":"10","price":"1","timeInForce":"GTC"}'

ENDPOINTS