Dukascopy
 
 
Wiki JStore Search Login

History trouble
 Post subject: History trouble Post rating: 0   New post Posted: Mon 02 Apr, 2012, 14:59 

User rating: 0
Joined: Mon 02 Apr, 2012, 14:51
Posts: 2
Guten Tag,

Context:
i want to receive the complete history for a given symbol in order to store the data in my own sql db and further analyze it with 3rd party software

Basically i use
List<IBar> bars = history.getBars(
                    instrument,
                    period,
                    offerSide,
                    Filter.NO_FILTER,
                    MAX_BARS_ALLOWED,
                    lastFullBarTime,
                    0);

In order to receive the history from the server. My problem is that i dont know the depth of the history in question and brute force is certainly not an appropriate method..

Also, the code throws exceptions that i dont know where to catch. E.g.:

ERROR FeedDataHistoryFirstTimesManager - Request for first feed data times timed out
com.dukascopy.charts.data.datacache.DataCacheException: Request for first feed data times timed out

Could someone please enlighten me about the proper way to receive the full history for a given symbol.

Thanks in advance,
Armin


 

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