Order
Get order details
This API provides the recent detail of the particular order the user has placed. The orders placed by the user is transient for a day and are cleared by the end of the trading session.\n\nThe order details can be requested using order_id.
get/v2/order/details
Request
- Base URL: https://api-v2.upstox.com
- URL: https://api-v2.upstox.com/v2/order/details
- Auth: OAuth 2 (authorization code, authorization URL https://api-v2.upstox.com/v2/login/authorization/dialog, token URL https://api-v2.upstox.com/v2/login/authorization/token)
Query parameters
order_idstring
The order reference ID for which the order details is required
Response
Successful
Example response
{
"data": {
"exchange": "NSE",
"product": "D",
"price": 120.01,
"quantity": 1,
"status": "Complete",
"tradingsymbol": "GMR",
"trading_symbol": "GMR",
"order_type": "MARKET",
"validity": "DAY",
"trigger_price": 120,
"disclosed_quantity": 1,
"transaction_type": "BUY",
"average_price": 120.01,
"pending_quantity": 1,
"variety": "SIMPLE",
"order_timestamp": "23-Apr-2021 14:22:06",
"exchange_timestamp": "24-Apr-2021 14:22:06",
"order_ref_id": "udapi-12345abcd"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.