Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

How can I take full information from history about orders which was partial closed?
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=51245
Page 1 of 1

Author:  janjjj [ Wed 14 May, 2014, 14:44 ]
Post subject:  How can I take full information from history about orders which was partial closed?

Hello,

I want to take some information about my historical ordes, so I use history.getOrdersHistory(...) method.

Now if I had partialy closed order, and then it was fully closed (generally it was closet in two parts), in this historical orders i have only information about second part of order.
I mean if i use methods like IOrder.getProfitLossInAccountCurrency(), IOrder.getCommission()... etc. I receive onformation only about second part of the order, and about first part of the order there is no information.

I know that I can also use IOrder.getCloseHistory(), but here I do not have any information about profitLoss or commisions (only about amount, close time and close price).

Please help.

Author:  API Support [ Wed 14 May, 2014, 15:16 ]
Post subject:  Re: How can I take full information from history about orders which was partial closed?

The position history will be fixed with JForex-API 3.0.

Author:  janjjj [ Wed 14 May, 2014, 17:55 ]
Post subject:  Re: How can I take full information from history about orders which was partial closed?

OK thanks.

When we can expect JForex API version 3.0?

I understand that now it is not possible to take information about partial close orders?

Regards

Author:  API Support [ Thu 15 May, 2014, 16:02 ]
Post subject:  Re: How can I take full information from history about orders which was partial closed?

janjjj wrote:
When we can expect JForex API version 3.0?
It will come with the JForex-SDK release for JForex4. There is no timeline for it as of now.
janjjj wrote:
I understand that now it is not possible to take information about partial close orders?
Not from history. You can only collect this data from active positions.

Author:  janjjj [ Mon 26 May, 2014, 13:58 ]
Post subject:  Re: How can I take full information from history about orders which was partial closed?

OK thanks.

Quote:
Not from history. You can only collect this data from active positions.


But how I can collect information (profit/loss, commissions) about partial closed orders from active positions?

I have information only about part of the order which is still opened. Can I also have this informationa about part of order which was closed?

Author:  API Support [ Mon 26 May, 2014, 14:19 ]
Post subject:  Re: How can I take full information from history about orders which was partial closed?

janjjj wrote:
But how I can collect information (profit/loss, commissions) about partial closed orders from active positions?

I have information only about part of the order which is still opened. Can I also have this informationa about part of order which was closed?

Author:  fxdiler [ Wed 13 Jul, 2022, 05:51 ]
Post subject:  Re: How can I take full information from history about orders which was partial closed?

Hello,

Let's up this 8 years ago topic. Current JForex API version is 4.0.28. Is there any solution how to get information about profit/loss and commission for orders which was partial closed?

  Page 1 of 1