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
Field | Type | Description |
---|---|---|
instrumentId | Int String | Instrument id for the order |
mpId | Int String | mpId |
mpOrderId | Long | Simialar to the trading API |
orderType | Enum | Simialar to the trading API |
side | Enum | Simialar to the trading API |
quantity | Decimal String | Simialar to the trading API |
price optional | Decimal String | Simialar to the trading API |
timeInForce optional | Enum | Simialar to the trading API |
expiryDate optional | UTC Time | Simialar to the trading API |
expiryDay optional | String | Simialar to the trading API |
minQuantity optional | Decimal String | Simialar to the trading API |
stopPrice optional | Decimal String | Simialar to the trading API |
stpAction optional | Enum | Simialar to the trading API |
accountType optional | Enum | Simialar to the trading API |
parties optional | [] Object | Simialar to the trading API |
Place Order - Error Codes
Validations: same as place order, with the below changes:
- Skip validations 1007 & 1008 &1011 (Authentication related)
Additional validation:
Code | Message |
---|---|
100 | Missing or invalid parameter: [FieldName] |
10001 | Permission 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"}