Dukascopy
 
 
Wiki JStore Search Login

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

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

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

Incorrect amount in IOrder.getCloseHistory
 Post subject: Incorrect amount in IOrder.getCloseHistory Post rating: 0   New post Posted: Mon 08 Dec, 2014, 20:58 

User rating: 6
Joined: Tue 02 Jul, 2013, 16:52
Posts: 38
The amount in IOrder.getCloseHistory is incorrect.

To demonstrate the issue, I opened the following position:
getFillHistory [time=2014-12-08 18:58:32, price=1.23240, amount=0.005]

And I closed it in 4 different trades with the exact same amount (0.00125). Here is the content of getCloseHistory at the end (toString for each element of the List):
getCloseHistory [time=2014-12-08 19:36:01, price=1.23237, amount=1250.000]
getCloseHistory [time=2014-12-08 19:38:20, price=1.23219, amount=1250.000]
getCloseHistory [time=2014-12-08 19:39:11, price=1.23210, amount=1250.000]
getCloseHistory [time=2014-12-08 19:39:51, price=1.23221, amount=0.001]

As you can see, the first 3 trades are expressed in units and not in Millions (like everything else), but the last one is actually expressed in Millions. It should be very easy for your to reproduce.

I have this problem with version 2.42.2 in demo. It was working fine in version 2.41.3 in demo, and now it's breaking my code :(


 
 Post subject: Re: Incorrect amount in IOrder.getCloseHistory Post rating: 0   New post Posted: Tue 09 Dec, 2014, 08:29 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We will investigate this.


 
 Post subject: Re: Incorrect amount in IOrder.getCloseHistory Post rating: 0   New post Posted: Wed 10 Dec, 2014, 13:17 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Fix for this issue will be available in next JForex platform release.


 

Jump to:  

  © 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