https://kite.trade/docs/connect/v3/portfolio/#positions shows average_price in the response attributes, however this is not available in the Position class.
One doesn't have to subscribe for order updates on Websockets. If you are connected then you will receive order updates. You can check out the documentation here.
Your code looks correct. on_ticks ticker method should be called properly. But,we feel as it's continous while loop print("i am from main -> after kws.connect(threaded=True)"
There will be one entry of a tradingsymbol traded at an exchange in a day. Even if you have traded multiple times in a day, there will be only one entry.
eg: def on_ticks(ws,ticks):<br />#Pass the tick data to Queue using celery,rq,etc<br />#Using celery delay method here to call helper_method task<br />helper_method.delay(ticks)<b