Problem in OrderHistory

vishwash_yadav
vishwash_yadav edited February 2018 in .Net API client
Hi Zerodha,

Today morning i placed a cover order and as a response i got OrderId='180208000133787'

but when i call GetOrderHistory with this orderID in order to 2nd leg order i didn't get any order whose ParentOrderId='180208000133787'

DEBUG: GET https://api.kite.trade/orders/180208000133787?
DEBUG: User-Agent: KiteConnect.Net/1.0.0.0
DEBUG: X-Kite-Version: 3
DEBUG: Authorization: token xxxxx:xxxxxxx
DEBUG: 200 {"status":"success","data":[{"placed_by":"YV6630","order_id":"180208000133787","exchange_order_id":null,"parent_order_id":null,"status":"PUT ORDER REQ RECEIVED","status_message":null,"order_timestamp":"2018-02-08 09:22:28","exchange_update_timestamp":null,"exchange_timestamp":null,"variety":"co","exchange":"NSE","tradingsymbol":"TORNTPOWER","instrument_token":3529217,"order_type":"MARKET","transaction_type":"BUY","validity":"DAY","product":"CO","quantity":1,"disclosed_quantity":0,"price":0,"trigger_price":252.6,"average_price":0,"filled_quantity":0,"pending_quantity":1,"cancelled_quantity":0,"market_protection":0,"tag":null,"guid":"W2kg5MzemR5z2BFD"},{"placed_by":"YV6630","order_id":"180208000133787","exchange_order_id":null,"parent_order_id":null,"status":"VALIDATION PENDING","status_message":null,"order_timestamp":"2018-02-08 09:22:28","exchange_update_timestamp":null,"exchange_timestamp":null,"variety":"co","exchange":"NSE","tradingsymbol":"TORNTPOWER","instrument_token":3529217,"order_type":"MARKET","transaction_type":"BUY","validity":"DAY","product":"CO","quantity":1,"disclosed_quantity":0,"price":0,"trigger_price":252.6,"average_price":0,"filled_quantity":0,"pending_quantity":1,"cancelled_quantity":0,"market_protection":0,"tag":null,"guid":"W2kg5MzemR5z2BFD"},{"placed_by":"YV6630","order_id":"180208000133787","exchange_order_id":null,"parent_order_id":null,"status":"OPEN PENDING","status_message":null,"order_timestamp":"2018-02-08 09:22:28","exchange_update_timestamp":null,"exchange_timestamp":null,"variety":"co","exchange":"NSE","tradingsymbol":"TORNTPOWER","instrument_token":3529217,"order_type":"MARKET","transaction_type":"BUY","validity":"DAY","product":"CO","quantity":1,"disclosed_quantity":0,"price":0,"trigger_price":252.6,"average_price":0,"filled_quantity":0,"pending_quantity":1,"cancelled_quantity":0,"market_protection":0,"tag":null,"guid":"W2kg5MzemR5z2BFD"},{"placed_by":"YV6630","order_id":"180208000133787","exchange_order_id":"1300000000372696","parent_order_id":null,"status":"OPEN","status_message":null,"order_timestamp":"2018-02-08 09:22:28","exchange_update_timestamp":null,"exchange_timestamp":"2018-02-08 09:22:28","variety":"co","exchange":"NSE","tradingsymbol":"TORNTPOWER","instrument_token":3529217,"order_type":"MARKET","transaction_type":"BUY","validity":"DAY","product":"CO","quantity":1,"disclosed_quantity":0,"price":0,"trigger_price":252.6,"average_price":0,"filled_quantity":0,"pending_quaException thrown: 'System.NullReferenceException' in KiteConnect.dll
Exception thrown: 'System.NullReferenceException' in KiteConnect.dll
Exception thrown: 'System.NullReferenceException' in KiteConnect.dll
ntity":1,"cancelled_quantity":0,"market_protection":0,"tag":null,"guid":"W2kg5MzemR5z2BFD"},{"placed_by":"YV6630","order_id":"180208000133787","exchange_order_id":"1300000000372696","parent_order_id":null,"status":"COMPLETE","status_message":null,"order_timestamp":"2018-02-08 09:22:28","exchange_update_timestamp":null,"exchange_timestamp":"2018-02-08 09:22:28","variety":"co","exchange":"NSE","tradingsymbol":"TORNTPOWER","instrument_token":3529217,"order_type":"MARKET","transaction_type":"BUY","validity":"DAY","product":"CO","quantity":1,"disclosed_quantity":0,"price":0,"trigger_price":252.6,"average_price":257.15,"filled_quantity":1,"pending_quantity":0,"cancelled_quantity":0,"market_protection":0,"tag":null,"guid":"W2kg5MzemR5z2BFD"}]}


Will you please just check it.
Tagged:
This discussion has been closed.