Could you please advice on what is the best way forward to subscribe and retrieve last price of multiple instruments? I have added the following line to subscribe to multiple instruments -
You won't receive ticks for all tokens in every on_tick. Kite Ticker only sends info when there is a change in any of the params. You can know more about it on FAQs.
But then how can I read ticks specific to an instrument? Given that I have subscribed to 3 instruments, ticks[1] might not refer to the 2nd instrument I had subscribed to, right?
Only first tick you receive will be a cached tick. Post that you will only receive ticks when there is a change in any of the params. You can verify instrument token in each item.
But then how can I read ticks specific to an instrument? Given that I have subscribed to 3 instruments, ticks[1] might not refer to the 2nd instrument I had subscribed to, right?