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.

How to determine tradable Instruments available within an Account?
 Post subject: How to determine tradable Instruments available within an Account? Post rating: 0   New post Posted: Sun 10 Feb, 2013, 02:59 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
What's the recommended way to do this using the standalone API ?

It seems that some accounts aren't configured to trade all instruments available at Dukascopy.

HyperScalper


 
 Post subject: Re: How to determine tradable Instruments available within an Account? Post rating: 0   New post Posted: Sun 10 Feb, 2013, 15:54 
User avatar

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

I need that too, but i can't find a way to do this, i find a solution, not the most elegant way to do it because of the possibility of future changes on the instrument enumeration that force us to change the code to reflect this changes. You can see my answer to other member here.

Best regards

Trade well

JL


 
 Post subject: Re: How to determine tradable Instruments available within an Account? Post rating: 0   New post Posted: Mon 11 Feb, 2013, 08:26 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
With JForex-API 2.7.9 IClient.getAvailableInstruments.


 
 Post subject: Re: How to determine tradable Instruments available within an Account? Post rating: 0   New post Posted: Mon 05 Aug, 2013, 19:14 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
Thank you Very Much for this function !

NOTE: Wait until the client is actually successfully connected
before invoking
IClient.getAvailableInstruments()

HyperScalper


 
 Post subject: Re: How to determine tradable Instruments available within an Account? Post rating: 0   New post Posted: Wed 14 Aug, 2013, 13:29 

User rating: 0
Joined: Sat 08 Jun, 2013, 12:05
Posts: 71
Location: FranceFrance
Any idea what's wrong?
I'm using jforex API <version>2.8.0</version> (just checked in pom.xml)
and yet no traces of this function https://i.imgur.com/fzyu3za.png


 
 Post subject: Re: How to determine tradable Instruments available within an Account? Post rating: 2   New post Posted: Thu 15 Aug, 2013, 09:52 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Just a thought (only if you use JForex SDK):
maybe you need to update the Maven project. This topic covers how to update.


 
 Post subject: Re: How to determine tradable Instruments available within an Account? Post rating: 0   New post Posted: Thu 15 Aug, 2013, 15:13 

User rating: 0
Joined: Sat 08 Jun, 2013, 12:05
Posts: 71
Location: FranceFrance
tcsabina wrote:
Just a thought (only if you use JForex SDK):
maybe you need to update the Maven project. This topic covers how to update.

indeed it's available now, I probably didn't update all deps, thx


 

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