Dukascopy
 
 
Wiki JStore Search Login

Not all orders in getHistory
 Post subject: Not all orders in getHistory Post rating: 0   New post Posted: Wed 17 Jul, 2013, 05:35 

User rating: 0
Joined: Tue 20 Mar, 2012, 18:26
Posts: 6
Location: Russian Federation, Moscow
Hello, everybody!

I had a working script (a strategy enclosed here) telling me, how much I have earned during a time period, but yesterday it refused to show me some of closed orders, which ARE shown in the "Position Report".

context.getHistory().getOrdersHistory(Instrument.fromString(pair), timeFrom, timeTo).size()

gives 2 orders less, than a "Position Report" for the same time period.

According to the Position Report, order close time for the two lost orders lies between timeFrom and timeTo, but these two orders are not shown.

Are there some other restrictions for using this function?

Thank you for an advice!

P.S. I've also mentioned that these two orders are not shown on the price chart of any period, while others are...


Attachments:
histReader.java [3.02 KiB]
Downloaded 384 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Not all orders in getHistory Post rating: 0   New post Posted: Tue 30 Jul, 2013, 11:12 

User rating: 0
Joined: Sat 08 Jun, 2013, 12:05
Posts: 71
Location: FranceFrance
Did you try running the asynchronous method?


 
 Post subject: Re: Not all orders in getHistory Post rating: 0   New post Posted: Tue 30 Jul, 2013, 12:16 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please send the following information to [email protected]:
  1. Your account id.
  2. The ids of the positions that you can see in Position Report, but neither can't retrieve from the strategy nor can't see on the chart.


 
 Post subject: Re: Not all orders in getHistory Post rating: 0   New post Posted: Tue 30 Jul, 2013, 15:27 

User rating: 0
Joined: Tue 20 Mar, 2012, 18:26
Posts: 6
Location: Russian Federation, Moscow
lil wrote:
Did you try running the asynchronous method?

No, I haven't.

And I tried to run the script now, and it shows all the positions this time. I think, it was a system issue.


 

Jump to:  

cron
  © 1998-2024 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