Dukascopy
 
 
Wiki JStore Search Login

Keeping tick data in offline cache
 Post subject: Keeping tick data in offline cache Post rating: 0   New post Posted: Fri 13 Nov, 2015, 19:49 
User avatar

User rating: 0
Joined: Tue 04 Sep, 2012, 06:35
Posts: 11
Location: Hungary,
I need lots of historical tick data to run some statistical functions.

If I am trying to access tick data via IHistory.ReadFeedData, the ticks not present in local cache will get downloaded, which is too time-consuming to be feasible, but pointing the client to my local tick database with IClient.setCacheDirectory may result in all the data getting wiped, as per to the API documentation.
Provided that I am absolutely comfortable with having a massive amount of cached ticks on my hard-drive (talking multiple years and dozens of instruments), what would be an elegant and maybe robust way to access these from the API preferably as some kind of Java collection?

Any help is welcome, Thank you in advance.


 
 Post subject: Re: Keeping tick data in offline cache Post rating: 0   New post Posted: Sun 15 Nov, 2015, 21:08 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Hi,

Do you need this 'real time'? Or is it sufficient to run those functions on yesterday's data?
If the latter, there is the Historical Data Feed. Maybe it can be used...


 
 Post subject: Re: Keeping tick data in offline cache Post rating: 0   New post Posted: Mon 16 Nov, 2015, 05:58 
User avatar

User rating: 0
Joined: Tue 04 Sep, 2012, 06:35
Posts: 11
Location: Hungary,
Thank you very much, but I do need the data real-time.

How I see it at the moment is IHistory interface being somewhat unsuited for bulk tick-data access, as the data that is already present locally gets compressed and sliced up, making it quite resource-intensive getting those arrays unless it's about a few hundred data points.
It would be by all means nice to provide some option of having historical data cached in an uncompressed manner for those of us being more worried about execution times than hard-drive footprint.

What I am trying to do ATM is using the downloaded tick data to build a custom "history-engine" with java.nio and memory mapped files. Maybe I'll update this thread in case of any considerable progress.


 

Jump to:  

  © 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