So, i have been trying to get the first tick of a list of futures @9:15, but tick comes as none leading to connection closed. Is it advised not to use conditions in the tick function? coz the same code runs perfectly fine after 9:15! using websocket
Is it advised not to use conditions in the tick function ?
Yes, make sure not to block on_tick thread and to pass on the tick value to a different thread for calculation. You can go through this thread for better understanding.
You can go through this thread for better understanding.