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.

Client ID
 Post subject: Client ID Post rating: 0   New post Posted: Fri 10 Aug, 2012, 15:08 

User rating: 0
Joined: Thu 29 Mar, 2012, 15:52
Posts: 10
Hello,

I know of the get.AccountId() command but is there a command to retrieve the client ID number.

Thank

ICL


 
 Post subject: Re: Client ID Post rating: 0   New post Posted: Fri 10 Aug, 2012, 15:22 
User avatar

User rating: 94
Joined: Mon 06 Feb, 2012, 12:22
Posts: 357
Location: Portugal, Castelo Branco
Hi ICL:

Not sure but i think you can get this with IAccount.getClientIds() (at least for PAMM accounts).

Trade well and prospers in your way.

JL


 
 Post subject: Re: Client ID Post rating: 0   New post Posted: Fri 10 Aug, 2012, 16:10 
User avatar

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


 
 Post subject: Re: Client ID Post rating: 0   New post Posted: Sat 11 Aug, 2012, 09:45 

User rating: 0
Joined: Thu 29 Mar, 2012, 15:52
Posts: 10
Thanks

what I'm trying to do is lock an indicator to a specific ID. I have the following which works

context.getConsole().getOut().println(context.getAccount().getAccountId());
login = context.getAccount().getAccountId();

if ( "12345".equalsIgnoreCase(login))
{valid = 1;}
else
{valid = 0;}

however, when I change the .getAccoutnId() to getClientIds() I get an error.

Your help is appreciated.

Thanks
ICL


 
 Post subject: Re: Client ID Post rating: 0   New post Posted: Sat 11 Aug, 2012, 13:31 
User avatar

User rating: 94
Joined: Mon 06 Feb, 2012, 12:22
Posts: 357
Location: Portugal, Castelo Branco
Hi ICL:

You get a error because the returning values of each methods are diferent!

The first one returns a String object and the second returns a Set<String>. You need to change your code taking in consideration this.

I hope this helps.

Trade well and prospers in your way

JL


 
 Post subject: Re: Client ID Post rating: 0   New post Posted: Mon 13 Aug, 2012, 08:11 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
In that case you need not Client ID but the login, see:
https://www.dukascopy.com/wiki/#Account_Type_and_Login


 

Jump to:  

  © 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