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.