I want to subscribe to ~10000 instruments but don't need continuous streaming data just wanted live data whenever I run the script.Im currently using the HTTP call kite.quote but because of the 500 instrument limit it takes more than a minute and the price changes.......Is there a possibility to run the websockets in a similar way...Chunk 10000 instrument list into 3000,3000,3000 and 1000 and run it in a loop?
Is there a possibility to run the websockets in a similar way...Chunk 10000 instrument list into 3000,3000,3000 and 1000 and run it in a loop?
Yes, you can use WebSocket to fetch tick data for 10000 scrips in 4 different threads(not in loop) with the same API key. Maximum instrument subscription allowed per thread is 3000. But make sure, you don't block on_tick thread while writing tick data to database or excel.
@rakeshr Thank you for your prompt reply will try this out....Also can this be scaled even higher?..Suppose I need 20000 instruments then can I run 7 threads?
But make sure, you don't block on_tick thread while writing tick data to database or excel.
How many instruments allowed to be subscribed per websocket?
and how many websockets allowed per api account?