How to subscribe more than 3000 instruments
I am using the KiteConnect API for WebSocket streaming, which allows a maximum of 3,000 instruments to be subscribed to at a time. To manage a list of over 10,000 instruments that changes daily, I need to dynamically subscribe and unsubscribe to stay within this limit. This requires subscribing and unsubscribing every 10 seconds to capture all the data effectively.
How to subscribe more than 3000 instruments
I am using the KiteConnect API for WebSocket streaming, which allows a maximum of 3,000 instruments to be subscribed to at a time. To manage a list of over 10,000 instruments that changes daily, I need to dynamically subscribe and unsubscribe to stay within this limit. This requires subscribing and unsubscribing every 10 seconds to capture all the data effectively.
How to fix error websockets.exceptions.InvalidHeaderValue: invalid Sec-WebSocket-Accept header in python websockets module
I recently decided to start a project, but I am getting the following error:websockets.exceptions.InvalidHeaderValue: invalid Sec-WebSocket-Accept header: JZq4DSqcCGSfRQDxjTcjS3i0PFs=
I am trying to connect to a server, but it’s not working.
Here’s the line to connect to the server (also the one causing the error): ws = websockets.connect("ws://15.204.212.200:444")