Package com.strategyquant.lib
Class HistoryDataLoader
java.lang.Object
com.strategyquant.lib.HistoryDataLoader
Helper class to retrieve history data for given symbol, timeframe and range (available from Build 136 Dev 2).
Upon success data is returned in HistoryOHLCData object.
Note - data loading will not work for protected data (SQ Futures and SQ Equities), where we are not allowed to "give" the raw data to the users.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HistoryOHLCData
Retrieves history data for given symbol, timeframe and range.
-
Field Details
-
Log
public static final org.slf4j.Logger Log
-
-
Constructor Details
-
HistoryDataLoader
public HistoryDataLoader()
-
-
Method Details
-
get
public static HistoryOHLCData get(String symbol, String timeframe, long dateFrom, long dateTo, String session) throws HistoryDataNotAvailableExeptionRetrieves history data for given symbol, timeframe and range. Upon success data is returned in HistoryOHLCData object. In case of error it will throw a HistoryDataNotAvailableExeption exception with error description. There are several possible exceptions: - symbol is not recognized - timeframe is not recognized for given symbol - data is protected - this class will not work for- Parameters:
symbol
-timeframe
-dateTo
-session
-- Returns:
- HistoryOHLCData
- Throws:
HistoryDataNotAvailableExeption
-