Closing all open orders at once

Created at 19 Jun 2015, 04:17
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
deklin's avatar

deklin

Joined 31.12.2014

Closing all open orders at once
19 Jun 2015, 04:17


Is there any way to close all open orders at the same moment?  Even when I use ClosePositionAsync with foreach, it can take 30 seconds to close 60 open positions.  How can I get this down to less than a second?

            foreach (var position in Positions)
            {
              ClosePositionAsync(position);
            }

 


@deklin
Replies

Spotware
19 Jun 2015, 12:52

Dear Trader,

Currently this is the fastest way to close many Positions. We will release an optimized version in the future. Stay tuned.


@Spotware

contrarianFX
25 Feb 2017, 20:45

RE:

Spotware said:

Dear Trader,

Currently this is the fastest way to close many Positions. We will release an optimized version in the future. Stay tuned.

Any news on this? The closing of multiple trades is too slow!

Thanks


@contrarianFX

kricka
27 Feb 2017, 17:54

Closing multiple orders and positions

An update of closing multiple positions and orders at the same time in the API would be very welcoming. We want the fastest way to handle multiple closing.  

Try out Close Positions cBot and see how it works out for you. Close Positions cBot information and download


@kricka