Order History
Order History
uTrade provides the Order History feature that offers a comprehensive view of an order's lifecycle, highlighting every state transition it undergoes. This includes the journey from the initial "Pending New" status to "New," "Partially Filled," and ultimately "Filled." This detailed trail of order states allows users to track the progression of a specific order, providing valuable insights into its execution and status changes. Whether it's the transition from "New" to "Partially Filled" or any other state change, the order history provides a clear and transparent record of each step in the order's journey.
Method: GET
{{SERVER_URL}}/api/V2/orders?appOrderID=&clientID
Content-Type |
Value |
Authorization |
{{AUTH_TOKEN}} |
Query Params
Param |
Value |
appOrderID |
[Required] The system generated unique order number |
clientID |
Required in case of dealer |
Response: 200
{
"code": 200,
"description": "Success order book",
"result": [
{
"LoginID": "CA492",
"ClientID": "CA492",
"AppOrderID": 2104100005,
"OrderReferenceID": "",
"GeneratedBy": "API",
"ExchangeOrderID": "52-1693372336123004150",
"OrderCategoryType": "NORMAL",
"ExchangeSegment": "BSECM",
"ExchangeInstrumentID": 541729,
"OrderSide": "BUY",
"OrderType": "Limit",
"ProductType": "NRML",
"TimeInForce": "DAY",
"OrderPrice": 2700,
"OrderQuantity": 1,
"OrderStopPrice": 0,
"OrderStatus": "New",
"OrderAverageTradedPrice": 0,
"LeavesQuantity": 1,
"CumulativeQuantity": 0,
"OrderDisclosedQuantity": 0,
"OrderGeneratedDateTime": "30-08-2023 15:53:37",
"ExchangeTransactTime": "30-08-2023 15:53:37",
"TradingSymbol": "HDFCAMC",
"LastUpdateDateTime": "07-04-53661427102 22:31:40",
"OrderExpiryDate": "01-01-1970 00:00:00",
"CancelRejectReason": "",
"OrderUniqueIdentifier": "123abc",
"OrderLegStatus": "SingleOrderLeg",
"IsSpread": false,
"MessageCode": 0,
"MessageVersion": 0,
"TokenID": 0,
"ApplicationType": 0,
"SequenceNumber": 12
},
{
"LoginID": "CA492",
"ClientID": "CA492",
"AppOrderID": 2104100005,
"OrderReferenceID": "",
"GeneratedBy": "API",
"ExchangeOrderID": "52-1693372336123004150",
"OrderCategoryType": "NORMAL",
"ExchangeSegment": "BSECM",
"ExchangeInstrumentID": 541729,
"OrderSide": "BUY",
"OrderType": "Limit",
"ProductType": "NRML",
"TimeInForce": "DAY",
"OrderPrice": 2504.3,
"OrderQuantity": 1,
"OrderStopPrice": 0,
"OrderStatus": "Filled",
"OrderAverageTradedPrice": 2504.3,
"LeavesQuantity": 0,
"CumulativeQuantity": 1,
"OrderDisclosedQuantity": 0,
"OrderGeneratedDateTime": "30-08-2023 15:53:37",
"ExchangeTransactTime": "30-08-2023 15:53:37",
"TradingSymbol": "HDFCAMC",
"LastUpdateDateTime": "07-04-53661427102 22:31:40",
"OrderExpiryDate": "01-01-1970 00:00:00",
"CancelRejectReason": "",
"OrderUniqueIdentifier": "123abc",
"OrderLegStatus": "SingleOrderLeg",
"IsSpread": false,
"MessageCode": 0,
"MessageVersion": 0,
"TokenID": 0,
"ApplicationType": 0,
"SequenceNumber": 13
},
{
"LoginID": "CA492",
"ClientID": "CA492",
"AppOrderID": 2104100005,
"OrderReferenceID": "",
"GeneratedBy": "API",
"ExchangeOrderID": "0",
"OrderCategoryType": "NORMAL",
"ExchangeSegment": "BSECM",
"ExchangeInstrumentID": 541729,
"OrderSide": "BUY",
"OrderType": "Limit",
"ProductType": "NRML",
"TimeInForce": "DAY",
"OrderPrice": 2700,
"OrderQuantity": 1,
"OrderStopPrice": 0,
"OrderStatus": "PendingNew",
"OrderAverageTradedPrice": 0,
"LeavesQuantity": 1,
"CumulativeQuantity": 0,
"OrderDisclosedQuantity": 0,
"OrderGeneratedDateTime": "30-08-2023 15:53:35",
"ExchangeTransactTime": "30-08-2023 15:53:35",
"TradingSymbol": "HDFCAMC",
"LastUpdateDateTime": "30-08-2023 15:53:35",
"OrderExpiryDate": "01-01-1970 00:00:00",
"CancelRejectReason": "",
"OrderUniqueIdentifier": "123abc",
"OrderLegStatus": "SingleOrderLeg",
"IsSpread": false,
"MessageCode": 0,
"MessageVersion": 0,
"TokenID": 0,
"ApplicationType": 0,
"SequenceNumber": 11
}
],
"type": "success"
}