If I change the last statement in the loop to below statement then it works fine
tick_df_all2=tick_df_all.append(tick_df_latest,ignore_index=True)
Therefore it is considered as resolved
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?