Dukascopy
 
 
Wiki JStore Search Login

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

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

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

IAccount.getAccountId() returns empty string
 Post subject: IAccount.getAccountId() returns empty string Post rating: 0   New post Posted: Tue 04 Sep, 2012, 07:39 
User avatar

User rating: 2
Joined: Mon 30 May, 2011, 15:41
Posts: 86
Location: Czech Republic, Prague
Hello, can I obtain any account unique id? getAccountId returns empty string. And can I obtain currently logged user name? Thank you.


 
 Post subject: Re: IAccount.getAccountId() returns empty string Post rating: 0   New post Posted: Tue 04 Sep, 2012, 09:32 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
See:
https://www.dukascopy.com/wiki/#Account_Type_and_Login


 
 Post subject: Re: IAccount.getAccountId() returns empty string Post rating: 0   New post Posted: Tue 04 Sep, 2012, 09:43 
User avatar

User rating: 2
Joined: Mon 30 May, 2011, 15:41
Posts: 86
Location: Czech Republic, Prague
Thank you for reply, your example output is:

Account type: TEST
login: tester_account

My username is not tester_account, but DEMO2.....

What I need primary is unique account id (I need remember separate informations for every account).
Why getAccountId returns empty string? Documentation says its return unique accound id.


 
 Post subject: Re: IAccount.getAccountId() returns empty string Post rating: 0   New post Posted: Tue 04 Sep, 2012, 09:48 
User avatar

User rating: 2
Joined: Mon 30 May, 2011, 15:41
Posts: 86
Location: Czech Republic, Prague
My mistake. TEST account type is historical tester and there are not this informations used. When I run strategy as DEMO, informations are OK. Sorry for my mistake.


 

Jump to:  

cron
  © 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