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

FieldTypeDescription
instrumentIdInt StringOriginal order instrument Id
orderIdInt StringExchange order ID to be replaced
quantityDecimal StringSimilar to the trading API
price optionalDecimal StringSimilar to the trading API
timeInForce optionalEnumSimialar to the trading API
expiryDate optionalUTC TimeSimilar to the trading API
expiryDay optionalStringSimilar to the trading API
minQuantity optionalDecimal StringSimilar to the trading API
stopPrice optionalDecimal StringSimilar to the trading API
stpAction optionalEnumSimilar to the trading API
parties optional[] ObjectSimialar 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:

CodeMessage
10001Permission denied

Request Body

{"orderId"=>"71", "instrumentId"=>"123", "quantity"=>"10", "price"=>"1", "timeInForce"=>"GTC"}

RESPONSES

status: OK

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