Logo
Admin API API Documentation

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

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

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

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

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

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



Curl
curl -X POST 'URL_ORIGIN/api/operations/place-order' -d '{"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"}]}'

ENDPOINTS