API GET ORDER RELATED QUERIES WA2455

venkatsys
venkatsys edited August 2019 in Kite Publisher
Dear Team,

After Placing an order , I try to get the order details.I got the order details but in the response details , price column value is 0.

Please find below the request and response.

Request
https://api.kite.trade/orders/190809000916776
Response
{
"status": "success",
"data": [
{
"average_price": 0,
"cancelled_quantity": 0,
"disclosed_quantity": 0,
"exchange": "NFO",
"exchange_order_id": null,
"exchange_timestamp": null,
"exchange_update_timestamp": null,
"filled_quantity": 0,
"guid": "7644X6fv3VJRMlVk6",
"instrument_token": 2,
"market_protection": 0,
"order_id": "190809000916776",
"order_timestamp": "2019-08-09 10:23:28",
"order_type": "MARKET",
"parent_order_id": null,
"pending_quantity": 20,
"placed_by": "WA2455",
"price": 0,
"product": "NRML",
"quantity": 20,
"status": "PUT ORDER REQ RECEIVED",
"status_message": null,
"status_message_raw": null,
"tag": null,
"tradingsymbol": "BANKNIFTY1981428500CE",
"transaction_type": "BUY",
"trigger_price": 0,
"validity": "DAY",
"variety": "regular"
},
{
"average_price": 0,
"cancelled_quantity": 0,
"disclosed_quantity": 0,
"exchange": "NFO",
"exchange_order_id": null,
"exchange_timestamp": null,
"exchange_update_timestamp": null,
"filled_quantity": 0,
"guid": "7644X6fv3VJRMlVk6",
"instrument_token": 10010626,
"market_protection": 0,
"order_id": "190809000916776",
"order_timestamp": "2019-08-09 10:23:28",
"order_type": "MARKET",
"parent_order_id": null,
"pending_quantity": 20,
"placed_by": "WA2455",
"price": 0,
"product": "NRML",
"quantity": 20,
"status": "VALIDATION PENDING",
"status_message": null,
"status_message_raw": null,
"tag": null,
"tradingsymbol": "BANKNIFTY1981428500CE",
"transaction_type": "BUY",
"trigger_price": 0,
"validity": "DAY",
"variety": "regular"
},
{
"average_price": 0,
"cancelled_quantity": 0,
"disclosed_quantity": 0,
"exchange": "NFO",
"exchange_order_id": null,
"exchange_timestamp": null,
"exchange_update_timestamp": null,
"filled_quantity": 0,
"guid": "7644X6fv3VJRMlVk6",
"instrument_token": 10010626,
"market_protection": 0,
"order_id": "190809000916776",
"order_timestamp": "2019-08-09 10:23:28",
"order_type": "MARKET",
"parent_order_id": null,
"pending_quantity": 20,
"placed_by": "WA2455",
"price": 0,
"product": "NRML",
"quantity": 20,
"status": "OPEN PENDING",
"status_message": null,
"status_message_raw": null,
"tag": null,
"tradingsymbol": "BANKNIFTY1981428500CE",
"transaction_type": "BUY",
"trigger_price": 0,
"validity": "DAY",
"variety": "regular"
},
{
"average_price": 0,
"cancelled_quantity": 0,
"disclosed_quantity": 0,
"exchange": "NFO",
"exchange_order_id": "1400000011029562",
"exchange_timestamp": "2019-08-09 10:23:28",
"exchange_update_timestamp": "2019-08-09 10:23:28",
"filled_quantity": 0,
"guid": "7644X6fv3VJRMlVk6",
"instrument_token": 10010626,
"market_protection": 0,
"order_id": "190809000916776",
"order_timestamp": "2019-08-09 10:23:28",
"order_type": "MARKET",
"parent_order_id": null,
"pending_quantity": 20,
"placed_by": "WA2455",
"price": 0,
"product": "NRML",
"quantity": 20,
"status": "OPEN",
"status_message": null,
"status_message_raw": null,
"tag": null,
"tradingsymbol": "BANKNIFTY1981428500CE",
"transaction_type": "BUY",
"trigger_price": 0,
"validity": "DAY",
"variety": "regular"
},
{
"average_price": 204.6,
"cancelled_quantity": 0,
"disclosed_quantity": 0,
"exchange": "NFO",
"exchange_order_id": "1400000011029562",
"exchange_timestamp": "2019-08-09 10:23:28",
"exchange_update_timestamp": "2019-08-09 10:23:28",
"filled_quantity": 20,
"guid": "7644X6fv3VJRMlVk6",
"instrument_token": 10010626,
"market_protection": 0,
"order_id": "190809000916776",
"order_timestamp": "2019-08-09 10:23:28",
"order_type": "MARKET",
"parent_order_id": null,
"pending_quantity": 0,
"placed_by": "WA2455",
"price": 0,
"product": "NRML",
"quantity": 20,
"status": "COMPLETE",
"status_message": null,
"status_message_raw": null,
"tag": null,
"tradingsymbol": "BANKNIFTY1981428500CE",
"transaction_type": "BUY",
"trigger_price": 0,
"validity": "DAY",
"variety": "regular"
}
]
}
Thanks and Regards,
R.Venkatesan
Tagged:
  • sujith
    You are looking at the order history. For more details, you can check out the documentation here.
  • venkatsys
    Hi Sujith I got the order history details but the closing price value is 0.Kindly check it and let me know.
    "price": 0..After I have placed my order why the price value 0
  • sujith
    You need to check the average price value and not price. The field price is user enter value. If you need executed price then check the average price.
Sign In or Register to comment.