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

How to get current Equity or credit line
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=57562
Page 1 of 1

Author:  janjjj [ Tue 26 Jan, 2021, 10:38 ]
Post subject:  How to get current Equity or credit line

Hello,

I need to calculate how max lot size I can open on the account in given moment.
So I need to receive current Credit line.
I use IAccount.getCreditLine() but there are often that this value is updated with quite a big lag.
There is a way to receive this information which is really up to date?

Author:  vadim_berezhnoj [ Tue 02 Feb, 2021, 12:30 ]
Post subject:  Re: How to get current Equity or credit line

Hello.

Strategy can make that calculations by itself, using the formula, equity and positions amount.
https://www.dukascopy.com/swiss/english ... ts/margin/

Regards.

Author:  janjjj [ Tue 02 Feb, 2021, 14:17 ]
Post subject:  Re: How to get current Equity or credit line

OK, but I need Equity to calculate it. But IAccount.getEquity() also is updated with a big lag (similar like IAccount.getCreditLine()).
So there is another possibility?

Author:  fprophet [ Sun 28 Mar, 2021, 23:20 ]
Post subject:  Re: How to get current Equity or credit line

history.getEquity() gives you your Account Equity last tick.

  Page 1 of 1