Hello Upstox Team,
I am using the Upstox Market Data WebSocket API for real-time market data streaming in a Python-based trading application.
The connection is successfully established and subscriptions are sent for approximately 100 instruments. Initially, the data stream works correctly and ticks are received normally. However, after some time the feed stops receiving updates even though the WebSocket connection still appears to be open. In some cases the connection also gets disconnected unexpectedly.
Details of the setup:
-
Broker API: Upstox Market Data WebSocket
-
Language: Python
-
Subscription count: ~100 instruments
-
Data mode: LTP / market data streaming
-
Usage: Intraday market monitoring bot
-
Environment: Desktop system with stable internet
Observed issues:
-
WebSocket feed stops sending data after running for some time.
-
Sometimes the connection disconnects automatically.
-
The connection occasionally appears open but no tick data is received (feed freeze).
Questions:
-
Is there any subscription limit or recommended maximum number of instruments per WebSocket connection?
-
Are there any heartbeat or keep-alive mechanisms required from the client side?
-
Is this behavior related to server throttling or connection timeout policies?
-
What is the recommended reconnection or subscription strategy for stable streaming?
If there are any best practices or configuration guidelines for maintaining a stable WebSocket connection with multiple instruments, please share them.
Thank you for your assistance.
Best regards