Post subject: Account Info for Standalone JForex API
Post rating: 0
Posted: Mon 12 Aug, 2013, 14:14
User rating: 1
Joined: Tue 01 May, 2012, 22:05 Posts: 17 Location: United Kingdom, London
Hello,
I would like to get my account balance using the standalone API, something like client.getAccountBalance() or client.getAccount() would be nice. I can't find a way to get a IAccount object except for the IContext interface and this you only can get when running a strategy.
I really appreciate any help you can provide.
tcsabina
Post subject: Re: Account Info for Standalone JForex API
, just as you indicated. And it is only 'valid' from a strategy indeed.
But, where else do you want to use it if not in a strategy?
StephanePaulus
Post subject: Re: Account Info for Standalone JForex API
Post rating: 0
Posted: Tue 13 Aug, 2013, 01:15
User rating: 1
Joined: Tue 01 May, 2012, 22:05 Posts: 17 Location: United Kingdom, London
I would like to have a graphical representation of my equity and account balance using the JForex SDK, the same as the bottom status bar when using JForex.
tcsabina
Post subject: Re: Account Info for Standalone JForex API
So what is the problem with running a strategy, which provides you the account information? If you need only to fetch the IAccount interface consider an approach similar to this: viewtopic.php?f=65&t=48713