on_ticks is a callback. Kite server is throwing tick data to this function. you have to do nothing just listen to it from inside of it. just don't do anything while listening that would take time and block this function. pass the ticks received here, to something ( non-blocking buffer/thread whatever is the equivalent in python to that ). From that non-blocking buffer/thread pick the ticks for storage or charting or algo calculations.
Thanks for the reply. But when I ran this script, it just returned the ticker data once. Is it that, I am running it after market hours and it will not return until there is any change in the tick?
yes that is exactly the cause. it is after market hours. during market hours you will receive ticks as the change happens in the data of the prescribed scrips. i.e change in LTP, etc...
Thanks
Regards
during market hours you will receive ticks as the change happens in the data of the
prescribed scrips. i.e change in LTP, etc...
Thanks
Regards
tick_df_all2=tick_df_all.append(tick_df_latest,ignore_index=True)
Therefore it is considered as resolved