☰
Login
Signup
Home
›
.Net API client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
14.1K
All Categories
0
Incidents
158
Node JS client
43
Go client
801
.Net API client
386
Kite Publisher
538
.Net / VBA / Excel (3rd party)
466
Algorithms and Strategies
1K
Java client
1.1K
API clients
408
PHP client
4.1K
Python client
349
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
General
In this Discussion
February 2018
vishwash_yadav
February 2018
tonystark
Problem in OrderHistory
vishwash_yadav
February 2018
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:
OrderHistory
tonystark
February 2018
@vishwash_yadav
GetOrderHistory is the life cycle of a single order. To get second leg of that order you should be looking at GetOrders
vishwash_yadav
February 2018
thanks
@tonystark
This discussion has been closed.