Currently, as I know, I can get my history closed positions about EURUSD by the following code snippet:
history.getOrdersHistory(Instrument.EURUSD , from.getTimeInMillis(), to.getTimeInMillis())”
However, I just simply want to get the closed positions for all instruments. I don't want to do above thing in a loop against for all instruments. If so, I have to communicate with hundreds times to broker server, it should do harm to the server.
Is there any way that we can avoid to iteratively query closed positions for all instruments?
Thanks