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
