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.

Getting real market data using demo account
 Post subject: Getting real market data using demo account Post rating: 0   New post Posted: Sat 14 Nov, 2009, 11:22 

User rating: 0
Joined: Mon 09 Nov, 2009, 15:36
Posts: 4
As indicated in the following link:
https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=9&t=441
the data that we get using demo account is different with the data that we get using real account for the data that its time is near current time. My question is:
How can be get real bar data using demo account? For example if we can get real bar data after one hour or less?


 
 Post subject: Re: Getting real market data using demo account Post rating: 0   New post Posted: Wed 18 Nov, 2009, 14:08 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
you need to use IHistory interface to access it. All historical data on a DEMO account is the LIVE data feed.
Here is some samples: https://www.dukascopy.com/swiss/docs/interfaces/IHistory.htm

Quote:
For example if we can get real bar data after one hour or less

It is possible. JForex has some specifics in its implementation. It locally caches an incoming data feed for the last hour. JForex uses cached feed when it is requested. For example, if a user logs in at 12:08. Then, say at 12:45, he launches a strategy that requests data from 11:30 till 12:15. JForex will take LIVE data from a server from 11:30 till 12:08 and it will use cache data from 12:08 till 12:15.


 

Jump to:  

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