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.

Dollar.IDX prices
 Post subject: Dollar.IDX prices Post rating: 0   New post Posted: Wed 03 Jul, 2019, 18:27 

User rating: 2
Joined: Thu 01 Mar, 2012, 17:17
Posts: 42
I'm sorry if I've missed something obvious, but is there any way to access Dollar.IDX prices in JForex code? It comes up fine as a chart, but it's not available as an option when selecting an instrument in history.getBars.

Many thanks, Bunyip


 
 Post subject: Re: Dollar.IDX prices Post rating: 0   New post Posted: Fri 05 Jul, 2019, 10:23 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
        Instrument dollarIdxInstrument = Instrument.fromString("DOLLAR.IDX/USD");
        IBar dollarIdxBar = history.getBar(dollarIdxInstrument, Period.DAILY, OfferSide.ASK, 1);


 
 Post subject: Re: Dollar.IDX prices Post rating: 0   New post Posted: Sat 06 Jul, 2019, 11:33 

User rating: 2
Joined: Thu 01 Mar, 2012, 17:17
Posts: 42
Thank you very much--that's exactly what I wanted!

Is there any way to refer to the prices of other single-currency futures?


 
 Post subject: Re: Dollar.IDX prices Post rating: 0   New post Posted: Tue 09 Jul, 2019, 18:10 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1048
Location: Geneva, Switzerland
No, we do not provide the historical feed of the exchange traded instruments. Dollar index is our own CFD as well.


 

Jump to:  

cron
  © 1998-2024 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