i have subcribed 200 stock for get data from web socket .but cannot get data every second . getting data randomly . every stock has no exact interval for getting data
Hi, The data from websockets are not given in a specific interval it is rather sent when there is a change in data. You can expect up to 1 tick per second for a liquid instrument. If you are subscribing for 200 tokens on main thread then you are probably blocking the main thread. I would suggest using worker threads for processing and storing ticks.
The data from websockets are not given in a specific interval it is rather sent when there is a change in data. You can expect up to 1 tick per second for a liquid instrument.
If you are subscribing for 200 tokens on main thread then you are probably blocking the main thread. I would suggest using worker threads for processing and storing ticks.