Place Order
POST/v1.1/order/create
Order status will change according to following sequence.
- Send to OMS new
- Pending new (for some exchanges)
- Queued
- Rejected
- Partially Filled
- Filled
- Expire (depending on the TIF type of the order)
Supported Asset Classes
- Equity
- Option
- Fixed Income
Request Body
{
"accountNumber": "P000128310",
"securityType": "CS",
"symbol": "AAPL",
"exchange": "NSDQ",
"quantity": 100,
"orderType": "2",
"orderSide": 1,
"price": 2,
"tif": 0,
"tradingSession": "REG"
}
|
|
Fractional trading is not supported for option orders; therefore, option orders cannot be placed using order value.
Request Body
{
"accountNumber": "P000128310",
"securityType": "OPT",
"symbol": "AAPL\\23F30\\65.0",
"exchange": "OPRA",
"quantity": 100,
"orderType": "2",
"orderSide": 1,
"price": 2,
"tif": 0,
}
|
|
Request Body
{
"accountNumber": "P000284369",
"securityType": "BND",
"symbol": "ANF 8 ¾ 07/15/25",
"exchange": "GTNFI",
"amount": 2000,
"orderType": "2",
"orderSide": 1,
"price": 50,
"tif": 0,
}
|
|
Request
- application/json
Body
Security account number of the customer.
The symbol code of the symbol/ticker which need to be traded.
Find exchange codes. Master Data > Get Exchange List
Possible values: <= 10 characters
Quantity or Order Value is required. if quantity > 0, order will place using quantity not order value.
For Order types - Master Data > Get Exchange Order Types
Possible values: [1
, 2
]
1 (Buy) | 2 (Sell)
Possible values: <= 16 characters
order price
For Time in force. Master Data > Get Exchange Tif Types
Default value: REG
For trading Sessions - Master data > Get Support Trading Sessions
Possible values: <= 16 characters
Quantity or Order Value is required. if quantity > 0, order will place using quantity not order value.
This is invest amount for fixed income.
Possible values: [CS
, OPT
, BND
]
Default value: CS
CS (Equity), OPT (Option), BND (Fixed Income)
Possible values: Value must match regular expression YYYY/MM/DD
Expiry date will be recorded in Coordinated Universal Time (UTC)
order amount
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
- example
Schema
{
"status": "string",
"reason": "string",
"orderReferenceId": "string",
"rejectCode": "string"
}
{
"status": "SUCCESS",
"reason": "Order sent to OMS",
"orderReferenceId": "a38d849845cf"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Invalid Token
- Expired Token
Schema
{
"timestamp": "string",
"status": "string",
"error": "string",
"message": "string",
"path": "string",
"rejectCode": "string"
}
{
"timestamp": "2023-12-28T09:51:50.682Z",
"status": "401",
"error": "Unauthorized",
"message": "Invalid Token",
"path": "/api/v1.1/order/create",
"rejectCode": "1008"
}
{
"timestamp": "2023-12-28T09:51:50.682Z",
"status": "401",
"error": "Unauthorized",
"message": "Expired Token",
"path": "/api/v1.1/order/create",
"rejectCode": "1007"
}