Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

How can I get my historical closed positions?
 Post subject: How can I get my historical closed positions? Post rating: 0   New post Posted: Thu 12 Jan, 2012, 22:03 

User rating: 0
Joined: Thu 12 Jan, 2012, 21:51
Posts: 1
Location: ChinaChina
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


 
 Post subject: Re: How can I get my historical closed positions? Post rating: 0   New post Posted: Fri 13 Jan, 2012, 08:07 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
No, there is no way to obtain order history without specifying the instrument.


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com