We are encountering an issue with our upcoming SaaS platform related to Tradovate WebSocket connections. Currently, we maintain hundreds of long-lived Tradovate WebSocket connections (user/syncrequest). However, we have observed that these connections tend to disconnect en masse around market closure times.
Details:
Issue: Multiple WebSocket connections disconnect simultaneously near market closure.
Observation: The disconnections often occur after the NewSession
event is triggered during market closure.
Evidence: Attached is a screenshot monitoring a WebSocket and the corresponding event.
Logs: There are no additional logs indicating a close event or any error messages—only abrupt disconnections.
Questions:
- Is this bulk disconnection behavior expected from Tradovate during market closure?
- Are there any best practices or configurations we might be missing to prevent these disconnections?