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.

Standalone API problem GBPJPY
 Post subject: Standalone API problem GBPJPY Post rating: 0   New post Posted: Thu 05 Jul, 2012, 10:20 

User rating: 0
Joined: Tue 28 Feb, 2012, 14:00
Posts: 10
if i add only GBPJPY to subscribed instruments the tester test in GBPJPY and USDJPY.

What is the problem?


 
 Post subject: Re: Standalone API problem GBPJPY Post rating: 0   New post Posted: Thu 05 Jul, 2012, 11:08 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
This is because the API engine needs to calculate account-related amounts in account currency (which presumably is USD in your case).


 
 Post subject: Re: Standalone API problem GBPJPY Post rating: 0   New post Posted: Thu 05 Jul, 2012, 12:22 

User rating: 0
Joined: Tue 28 Feb, 2012, 14:00
Posts: 10
How can i modify account currency?


 
 Post subject: Re: Standalone API problem GBPJPY Post rating: 0   New post Posted: Thu 05 Jul, 2012, 12:36 
User avatar

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


 
 Post subject: Re: Standalone API problem GBPJPY Post rating: 0   New post Posted: Thu 05 Jul, 2012, 12:38 

User rating: 0
Joined: Tue 28 Feb, 2012, 14:00
Posts: 10
in my code containts following code:

client.setInitialDeposit(Instrument.GBPJPY.getPrimaryCurrency(), 50000);


 
 Post subject: Re: Standalone API problem GBPJPY Post rating: 0   New post Posted: Tue 10 Jul, 2012, 14:18 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We made further investigation on the matter. The subscription happens for proper calculation of IOrder.getProfitLossInUSD. For filtering undesired ticks and bars, see:
https://www.dukascopy.com/wiki/#Filter_Ticks_Bars


 

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