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.

ERROR AuthorizationClient ....
 Post subject: ERROR AuthorizationClient .... Post rating: 0   New post Posted: Fri 08 Jun, 2012, 13:21 

User rating: 2
Joined: Tue 08 Nov, 2011, 15:23
Posts: 29
Location: Slovenia,
I am using one year old demo code that was normaly working back than. Could you explain what need to be changed to resolve authorisation problem ..?

Eclips consol:
2012-06-08 14:01:06.101 INFO AuthorizationClient - >> [https://www1.dukascopy.com/authorization/demo/auth?typus=0&munus=stngs&appello=******* (password is replaced with *)&licentio=9ac5b5a1a0b4b01939b33407bc1d26fbc9e16c0de34217fcdb130e9edea52034&sermo=d128b1dd-a9b6-46b2-9a61-4b5d1fd75e9f&stngs=1]
2012-06-08 14:01:07.252 WARN AuthorizationClient - << [{news.host.url=https://external.dukascopy.com, jss.logserver.url=https://demo-login.dukascopy.com/jss-log/, userTypes=MINI_FX,MANAGE_STOP_LIMIT,REGULAR,, wlabel.logo=[B@740abd44, news.source=api, contest.chart.url=https://demo-login.dukascopy.com/aDDS/export/contestChart.php, menu.item.dayly.hl=/marketwatch/daily_hl_interbank/, menu.item.margin.level.calculator=/marketwatch/forexcalc/margin_level/, wlabel.shortLabel=Dukascopy Bank, encryptionKey=8135E18A536C9C11863B8F5F924B5AB7, reports.url=/Reports, base.calendar.url=https://www.dukascopy.com/swiss/{0}, menu.item.economic.calendar=/marketwatch/calendars/eccalendar/, additionalUserTypes=[], feed.commission.history=[], brokerChat.url=https://www.dukascopy.com/chat/login.php?channel=3, wlabel.url=https://www.dukascopy.com, platformFaq.url=https://www.dukascopy.com/swiss/english/forex/faq/, menu.item.holidays.calendar=/marketwatch/calendars/NationalHolidaysCalendar/, menu.item.report.issue=/about/issues/, reports=portfolio_client,intraday_client,position_client,annual_report,trader_sll,activity_log,trade_log,trader_sll_action_log, tradelog_sfx.url=/aDDS/export/tradeLog.php, platformManual.url=https://www.dukascopy.com/wiki/, instruments=[CAD/HKD, EUR/SGD, EUR/NOK, EUR/NZD, AUD/NZD, USD/TRY, GBP/USD, NZD/CHF, USD/MXN, USD/HKD, SGD/JPY, EUR/HKD, AUD/CAD, USD/PLN, EUR/PLN, USD/NOK, USD/CHF, GBP/CHF, EUR/CHF, USD/JPY, GBP/CAD, HKD/JPY, GBP/JPY, EUR/CAD, USD/SEK, CHF/SGD, USD/DKK, EUR/SEK, NZD/JPY, AUD/SGD, NZD/USD, CAD/JPY, EUR/GBP, CHF/JPY, XAG/USD, GBP/AUD, AUD/JPY, XAU/USD, EUR/USD, AUD/USD, USD/CAD, USD/ZAR, EUR/JPY, USD/SGD, AUD/CHF, GBP/NZD, USD/RUB, NZD/CAD, CAD/CHF, EUR/AUD, EUR/DKK, EUR/TRY], menu.item.forex.calculator=/marketwatch/forexcalc/forex_calculator/, debug=false, client.mode=DEMO, loginId=80692, get.help.url=https://www.dukascopy.com/swiss/english/forex/jforex/forum/, menu.item.interest.rates.calendar=/marketwatch/calendars/InterestRatesCalendar/, wlabel.foUrl=https://demo-login.dukascopy.com, history.server.url=https://www.dukascopy.com/datafeed/, external_ip=188.196.16.208, wlabel.longLabel=Dukascopy Bank SA, services1.url=https://demo-login.dukascopy.com, wlabel.skype=dukascopy, wlabel.phone=+41 (0) 22 799 4888}]
2012-06-08 14:01:07.748 INFO Main - Connected
2012-06-08 14:01:07.748 INFO Main - Connected
2012-06-08 14:01:07.748 INFO Main - Subscribing instruments...
2012-06-08 14:01:07.748 INFO Main - Downloading data
2012-06-08 14:01:08.132 ERROR AuthorizationClient - Authorization for data feed server failed, system error

I do not want to use new code as there are usefull coments in old demo code..

Regards, Fedo


 
 Post subject: Re: ERROR AuthorizationClient .... Post rating: 0   New post Posted: Fri 08 Jun, 2012, 13:26 

User rating: 2
Joined: Tue 08 Nov, 2011, 15:23
Posts: 29
Location: Slovenia,
code:
//SET INSTRUMENTS for Testing ****************************************
Set<Instrument> instruments = new HashSet<Instrument>();
instruments.add(Instrument.EURUSD);
LOGGER.info("Subscribing instruments...");
client.setSubscribedInstruments(instruments);
//SET INICIAL DEPOSIT ***********************************************
client.setInitialDeposit(Instrument.EURUSD.getSecondaryCurrency(), 10000);
//load data
LOGGER.info("Downloading data");
Future<?> future = client.downloadData(null);
//wait for downloading to complete
future.get();
//START STRATEGY *******************************************************
LOGGER.info("Starting strategy");
client.startStrategy(new MA_Play(), new LoadingProgressListener() {
@Override
public void dataLoaded(long startTime, long endTime, long currentTime, String information) {
LOGGER.info(information);
}


 
 Post subject: Re: ERROR AuthorizationClient .... Post rating: 0   New post Posted: Fri 08 Jun, 2012, 17:03 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Update the platform or the JForex 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