Jump to content
Sign in to follow this  
Kirill

Restore lost orders after reboot.

Recommended Posts

Hello.

We use a java lightstream client with 'RAW' subscription mode to acquire the orders. Is it possible to get the lost orders which occur while the client restart?

Kind Regards.

Share this post


Link to post

Hello Kirill,

The Orders stream only sends an update when an order or open position has changed state. If the client is rebooting / disconnected, then upon re-login you can make a ListActiveOrders and ListOpenPositions call to obtain the latest state of all your open positions and orders. Then after subscribing to the Orders stream again, you can receive any updates to your orders / open positions when they occur.

Kind Regards, PM

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×