Get Order Details
GET/v1.1/order
This is used to get the details of an individual order. This will give all the details about the order as well as the list of executions that took place on that order.
orderId or orderReferenceId is required
Request
Query Parameters
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
- Equity
- when tif is 6.
- Option
- Fixed Income
Schema
- Array [
- ]
Find error codes here
Security account number
Possible values: [1
, 2
]
1 (Buy) | 2 (Sell)
Possible values: [1
, 2
]
1 (Market order) | 2 (Limit order)
Find list of status here
Possible values: Value must match regular expression yyyy/MM/dd-HH:mm:ss
executionList object[]
Possible values: Value must match regular expression yyyy/MM/dd-HH:mm:ss
filled quantity
filled order value
filled net value (order value + commission + vat + order fees + etc.)
filled order commission
filled order net settle (net value * issue settle rate)
issue settle rate ; exchnage currency to cash account currency rate
This is only for Fixed Income orders.
Possible values: Value must match regular expression yyyy/MM/dd-HH:mm:ss
This is only for fixed income orders.
This is only for fixed income orders
{
"status": "string",
"reason": "string",
"rejectCode": 0,
"orderNumber": "string",
"orderId": "string",
"originalOrderId": "string",
"exchange": "string",
"symbol": "string",
"accountNumber": "string",
"orderSide": "1",
"orderType": "1",
"orderStatus": "string",
"averagePrice": 0,
"orderQty": 0,
"orderValue": 0,
"commission": 0,
"vat": 0,
"date": "string",
"rejectReason": "string",
"executionIds": "string",
"lastPrice": 0,
"executionList": [
{
"executionId": "string",
"lastPrice": 0,
"filledQty": 0,
"commission": 0,
"orderStatus": "string",
"updatedDateTime": "string"
}
],
"cumulativeQty": 0,
"cumulativeOrderValue": 0,
"cumulativeOrderNetValue": 0,
"cumulativeCommission": 0,
"cumulativeOrderNetSettle": 0,
"cumulativeVatAmount": 0,
"cumulativeStampDutyAmount": 0,
"tif": 0,
"orderReferenceId": "string",
"currency": "string",
"settleCurrency": "string",
"lastUpdatedDate": "string",
"amount": 0,
"accruedInterest": 0
}
{
"status": "SUCCESS",
"reason": "getting order details success",
"rejectCode": 0,
"executionList": [
{
"executionId": "1706004374577",
"lastPrice": 10,
"filledQty": 100,
"commission": 1.01,
"orderStatus": "1",
"updatedDateTime": "2024/01/23-10:06:44"
},
{
"executionId": "1706004374580",
"lastPrice": 10,
"filledQty": 100,
"commission": 0,
"orderStatus": "1",
"updatedDateTime": "2024/01/23-10:06:59"
},
{
"executionId": "1706004374582",
"lastPrice": 10,
"filledQty": 50,
"commission": 0,
"orderStatus": "2",
"updatedDateTime": "2024/01/23-10:07:14"
}
],
"orderNumber": "24F232000059",
"orderId": "24F232000059",
"originalOrderId": "-1",
"orderReferenceId": "Ec7303cf6bf76",
"exchange": "NSDQ",
"symbol": "AAPL",
"accountNumber": "P000284400",
"orderSide": "1",
"orderType": "2",
"averagePrice": 10,
"orderQty": 250,
"filledQty": 250,
"orderValue": 2500,
"commission": 1.01,
"vat": 0,
"date": "2024/01/23-10:06:13",
"executionIds": "[1706004374577, 1706004374580, 1706004374582]",
"lastPrice": 10,
"orderStatus": "2",
"cumulativeQty": 250,
"cumulativeOrderValue": 2500,
"cumulativeOrderNetValue": 2876.01,
"cumulativeCommission": 1.01,
"cumulativeOrderNetSettle": 2876.01,
"cumulativeVatAmount": 0,
"cumulativeStampDutyAmount": 0,
"tif": 0,
"currency": "USD",
"settleCurrency": "USD",
"lastUpdatedDate": "2024/01/23-10:07:14"
}
{
"status": "SUCCESS",
"reason": "getting order details success",
"rejectCode": 0,
"executionList": [
{
"executionId": "1709901217998",
"lastPrice": 2,
"filledQty": 10,
"commission": 4020.4,
"orderStatus": "1",
"updatedDateTime": "2024/03/08-12:34:07"
},
{
"executionId": "1709901218000",
"lastPrice": 2,
"filledQty": 10,
"commission": 4010.399999999999,
"orderStatus": "1",
"updatedDateTime": "2024/03/08-12:34:22"
}
],
"orderNumber": "24H082000068",
"orderId": "24H082000068",
"orderReferenceId": "Ed1c80a3300c6",
"exchange": "NSDQ",
"symbol": "AAPL",
"accountNumber": "P000283358",
"orderSide": "1",
"orderType": "2",
"averagePrice": 2,
"orderQty": 100,
"filledQty": 20,
"orderValue": 40,
"commission": 8030.8,
"vat": 0,
"date": "2024/03/08-12:33:37",
"executionIds": "[1709901217998, 1709901218000]",
"lastPrice": 2,
"orderStatus": "1",
"cumulativeQty": 20,
"cumulativeOrderValue": 40,
"cumulativeOrderNetValue": 8073.6,
"cumulativeCommission": 8030.8,
"cumulativeOrderNetSettle": 8073.6,
"cumulativeVatAmount": 0,
"cumulativeStampDutyAmount": 0,
"tif": 6,
"currency": "USD",
"settleCurrency": "USD",
"lastUpdatedDate": "2024/03/08-12:34:22",
"expiryDate": "2024/03/10-23:59:59"
}
{
"status": "SUCCESS",
"reason": "getting order details success",
"rejectCode": 0,
"executionList": [],
"orderNumber": "O24G06200001",
"orderId": "O24G06200001",
"orderReferenceId": "O327b61c48ec1",
"exchange": "OPRA",
"symbol": "AAPL\\24D19\\105.0",
"accountNumber": "P000284400",
"orderSide": "1",
"orderType": "2",
"averagePrice": 0,
"orderQty": 50,
"filledQty": 0,
"orderValue": 50000,
"commission": 1010,
"vat": 0,
"date": "2024/02/06-04:59:12",
"executionIds": "[]",
"lastPrice": 0,
"orderStatus": "M",
"cumulativeQty": 0,
"cumulativeOrderValue": 0,
"cumulativeOrderNetValue": 0,
"cumulativeCommission": 0,
"cumulativeOrderNetSettle": 0,
"cumulativeVatAmount": 0,
"cumulativeStampDutyAmount": 0,
"tif": 0,
"currency": "USD",
"settleCurrency": "USD",
"lastUpdatedDate": "2024/02/06-04:59:12"
}
{
"status": "SUCCESS",
"reason": "getting order details success",
"rejectCode": 0,
"orderNumber": "CB240215-2-00001",
"orderId": "CB240215-2-00001",
"orderReferenceId": "CB8e920b36e422",
"exchange": "GTNFI",
"symbol": "ANF 07/15/25 8.75",
"accountNumber": "P000284369",
"orderSide": "1",
"orderType": "1",
"orderQty": 2,
"amount": 2000,
"commission": 0.07,
"date": "2024/02/15-04:06:37",
"lastUpdatedDate": "2024/02/15-12:11:09",
"orderStatus": "M",
"currency": "USD",
"securityType": "BND",
"price": 35,
"tif": 0,
"accruedInterest": 0,
"cumulativeQty": 0,
"cumulativeOrderValue": 0,
"cumulativeCommission": 0
}
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",
"rejectCode": "1008"
}
{
"timestamp": "2023-12-28T09:51:50.682Z",
"status": "401",
"error": "Unauthorized",
"message": "Expired Token",
"path": "/api/v1.1/order",
"rejectCode": "1007"
}