Am getting this error after subscribing to 70 tokens, but when I subscribe to fewer tokens, all is smooth and orders are placed as required. Is there any maximum limit to the number of tokens we can subscribe to in a single session? The
kindly advise what we are doing wrong. for the small number of instrument tokens, the program goes well. But when increasing the number of instrument tokens to 50 and more, it shows the error - 1006 connection closed uncleanly and it doesn't reconnect again. Also, we have remove ws.stop from onclose but it is also not working.
on_ticks
websocket thread?If yes, go through python WebSocket FAQs here. You can subscribe up to 3000 instruments/shares in a single WebSocket connection.
helper_method(ws,ticks)
we are using helper_method function inside on_tick function then doing other calculations there.
https://kite.trade/forum/discussion/7399/kiteconnect-ticker-connection-error-1006-connection-was-closed-uncleanly-none
kindly advise what we are doing wrong. for the small number of instrument tokens, the program goes well. But when increasing the number of instrument tokens to 50 and more, it shows the error -
1006 connection closed uncleanly and it doesn't reconnect again.
Also, we have remove ws.stop from onclose but it is also not working.