Hi,
This is related to Tradovate Websocket API
We subscribe Websocket for order status update
After a certain hour around 3-4 hour we stop receiving any data . We didn’t get any close frames
Any help would be appreciated.
Hi,
This is related to Tradovate Websocket API
We subscribe Websocket for order status update
After a certain hour around 3-4 hour we stop receiving any data . We didn’t get any close frames
Any help would be appreciated.
We do not have any issues like this. There might be a device in your network disconnecting the websocket.
Make sure that you respond the heartbeat request and also send your own heartbeats as well.
Then add code to detect a websocket disconnection and reconnect automatically.
Thanks for your Kind help we keep sending heartbeat and we also get heartbeat and didn’t get any close event and heartbeat keep exchanging that means WebSocket is still open it’s just we don’t get order updates.
could that be issue we are connected on WebSocket for order status and we make rest call that disconnect WebSocket ?
Hi @Frik_Strecker ,
is there any call which we can make so we know like we are connected with order status update or not and then we can make synch request again accordingly ?
Any help would be really appreciated
Please check documentation and search for “heartbeat” server frames, they should help you with understanding connection status and making sure its still connected.
A usersync should only be done once after authentication. Any other updates will be processed as events.
Brett is correct that heartbeats will give you confidence that you are still connected.
@Alexander May i request you to help on this since we tried sending hearbeat but still we stop receiving order updates
Let me know if you need help
sure @Frik_Strecker . Thanks a ton for your kind help
Feel free to ask on the Discord server as it is more interactive