Does anyone know how many websocket connection can we open on a single API?
Yes,In websocket connection can connect upto 25 scripts.
What I mean is how many python scripts I can open websocket connection on a single api or trading account. Like I want to run 4 different python scripts using websocket connection but same trading account.
Yes,You can.
Oh thanks! Also, is there a limit to how many connection?
The following are the rate limits for API users
-
Orders - NOT LIMITED. Placing a new order, Modifying an existing order, square off positions and Cancelling an order are all not limited.
-
All other requests - Limited to 1800 requests per 15 minitues. This limit will be reset every 15 minutes to 1800 again.
When I am connecting websocket with js code it showing like this what URL need to use to connect with websocket?
AliceBlue_Websocket_Sample_code.php:266 WebSocket connection to ‘wss://ws1.aliceblueonline.com/NorenWS’ failed: const wSocket = new WebSocket(constant.WEBSOCKET);
if posible provide sample js code for websocket connection