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.

LIVE IClient connect problem
 Post subject: LIVE IClient connect problem Post rating: 0   New post Posted: Sat 15 Oct, 2011, 20:16 

User rating: 0
Joined: Sat 15 Oct, 2011, 20:11
Posts: 1
Location: SG
According to the API, there're two methods to connect and authenticate. One is with security code, one is without.

I'm trying to connect through java program in Eclipse. I tried both ways, but seems no luck.

1. The one without security code, the error message in the console is:
2011-10-16 02:59:04.718 INFO Main - Connecting...
Exception in thread "main" com.dukascopy.api.system.JFAuthenticationException: Incorrect username or password
at com.dukascopy.api.impl.connect.DCClientImpl.authenticate(DCClientImpl.java:414)
at com.dukascopy.api.impl.connect.DCClientImpl.connect(DCClientImpl.java:208)
at com.dukascopy.api.impl.connect.DCClientImpl.connect(DCClientImpl.java:198)
at singlejartest.Main.main(Main.java:97)

2. The one with security code.
Well, there's a problem. I wouldn't know the security code. I know my pin code, but that doesn't help, does it?

I'm writing java command line program, i didn't write the desktop program, by the way.

So my question is, how can i connect to LIVE server?


 
 Post subject: Re: LIVE IClient connect problem Post rating: 0   New post Posted: Mon 17 Oct, 2011, 11:44 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
liangyi2012 wrote:
1. The one without security code, the error message in the console is:
2011-10-16 02:59:04.718 INFO Main - Connecting...
Exception in thread "main" com.dukascopy.api.system.JFAuthenticationException: Incorrect username or password
at com.dukascopy.api.impl.connect.DCClientImpl.authenticate(DCClientImpl.java:414)
at com.dukascopy.api.impl.connect.DCClientImpl.connect(DCClientImpl.java:208)
at com.dukascopy.api.impl.connect.DCClientImpl.connect(DCClientImpl.java:198)
at singlejartest.Main.main(Main.java:97)
You have to insert here your actual username and password:
    //user name
    private static String userName = "username";
    //password
    private static String password = "password";

liangyi2012 wrote:
2. The one with security code.
Well, there's a problem. I wouldn't know the security code. I know my pin code, but that doesn't help, does it?
This does not get applied in Standalone API.


 

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