java.lang.Object
org.ojalgo.data.domain.finance.series.FinanceDataReader<DP>
- All Implemented Interfaces:
DataFetcher,FinanceData<DP>
public final class FinanceDataReader<DP extends DatePrice>
extends Object
implements FinanceData<DP>, DataFetcher
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends DatePrice>
FinanceDataReader<T> of(File file, TextLineReader.Parser<T> parser) static <T extends DatePrice>
FinanceDataReader<T> of(File file, TextLineReader.Parser<T> parser, CalendarDateUnit resolution) static <T extends DatePrice>
FinanceDataReader<T> of(InMemoryFile file, TextLineReader.Parser<T> parser) static <T extends DatePrice>
FinanceDataReader<T> of(InMemoryFile file, TextLineReader.Parser<T> parser, CalendarDateUnit resolution) static StringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ojalgo.data.domain.finance.series.DataFetcher
getReader
-
Method Details
-
of
public static <T extends DatePrice> FinanceDataReader<T> of(File file, TextLineReader.Parser<T> parser) -
of
public static <T extends DatePrice> FinanceDataReader<T> of(File file, TextLineReader.Parser<T> parser, CalendarDateUnit resolution) -
of
public static <T extends DatePrice> FinanceDataReader<T> of(InMemoryFile file, TextLineReader.Parser<T> parser) -
of
public static <T extends DatePrice> FinanceDataReader<T> of(InMemoryFile file, TextLineReader.Parser<T> parser, CalendarDateUnit resolution) -
toSymbol
-
getHistoricalData
- Specified by:
getHistoricalDatain interfaceFinanceData<DP extends DatePrice>
-
getHistoricalPrices
- Specified by:
getHistoricalPricesin interfaceFinanceData<DP extends DatePrice>
-
getInputStream
- Specified by:
getInputStreamin interfaceDataFetcher
-
getPriceSeries
- Specified by:
getPriceSeriesin interfaceFinanceData<DP extends DatePrice>
-
getResolution
- Specified by:
getResolutionin interfaceDataFetcher- Returns:
- Typically DAY(ly), WEEK(ly) or MONTH(ly)
-
getSymbol
- Specified by:
getSymbolin interfaceDataFetcher- Specified by:
getSymbolin interfaceFinanceData<DP extends DatePrice>- Returns:
- Data identifier
-