NEW 1.28 Place Order

POST {{URL_ORIGIN}}/api/operations/place-order

Place Order API allows you to place an order for mp

For more details about place order - see here

Place order- Fields

FieldTypeDescription
instrumentIdInt StringInstrument id for the order
mpIdInt StringmpId
mpOrderIdLongSimialar to the trading API
orderTypeEnumSimialar to the trading API
sideEnumSimialar to the trading API
quantityDecimal StringSimialar to the trading API
price optionalDecimal StringSimialar to the trading API
timeInForce optionalEnumSimialar to the trading API
expiryDate optionalUTC TimeSimialar to the trading API
expiryDay optionalStringSimialar to the trading API
minQuantity optionalDecimal StringSimialar to the trading API
stopPrice optionalDecimal StringSimialar to the trading API
stpAction optionalEnumSimialar to the trading API
accountType optionalEnumSimialar to the trading API
parties optional[] ObjectSimialar to the trading API

Place Order - Error Codes

  1. Validations: same as place order, with the below changes:

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

CodeMessage
100Missing or invalid parameter: [FieldName]
10001Permission denied

Request Body

{"mpId"=>"11", "orderType"=>"Limit", "side"=>"Buy", "quantity"=>"1.3", "price"=>"100.33", "instrumentId"=>"123", "mpOrderId"=>998, "timeInForce"=>"GTC", "accountType"=>"House", "parties"=>[{"id"=>"veryCoolStringId", "source"=>"D", "role"=>"12"}, {"id"=>"user123", "source"=>"D", "role"=>"13"}]}

RESPONSES

status: OK

{"orderId":"71","orderStatus":"Pending"}