i have been encountering this issue since day 1 ..ever since my kite subscription started....didnt need the volume data at first but now i actually the need the volume , so have to sort this out .
yes for some reason one token in the list was not int type ..
token=list(map(int, df_token["instrument_token"].tolist()))
now its working
thankyou Sri for the prompt response
that will just create a single thread and execute tick_func only once .... just discovered the threadpool executor which can be placed inside while True , it creates and shuts a thread for every iteration