@rakeshr I am defining this order status check in the while loop and on_order_update is defined outside the while loop. So how do I use the on_order_update function inside the while loop?
Dictionaries cannot be called like this.
for tick in ticks:
if tick['instrument_token']==nse[i]:
pass
It has to be called like this:
for key, value in ticks.items():
pass
File "C:\Users\surya\Downloads\Documents\trade\trade.py", line 10, in computation
if ticks['instrument_token'] == nse[i]:
builtins.TypeError: list indices must be integers or slices, not str
ERROR:kiteconnect.ticker:Connection closed: 1006 - c…
I am using a while loop, and I have inserted all the relevant pieces of code in it. But the websocket KiteTicker class can be defined outside the while loop right?
Rs. 2000 for API Access, and an additional Rs. 2000 for Historical Data Access for 1 month. The number of users is approximately 0.05% of Zerodha total customers.