Interface MarketPriceWriter
- All Known Implementing Classes:
CsvMarketPriceWriter
public interface MarketPriceWriter
Defines the writer for market prices.
- Version:
- 1.0.6
- Author:
- Stephen Prizio
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidvalidateWriterParameters(SymbolAlias symbolAlias, MarketTimeInterval timeInterval, String delimiter) Validates the given parameters before writing.writeMarketPrices(SymbolAlias symbolAlias, MarketTimeInterval timeInterval, String delimiter) Writes market prices for the givenSymbolAliasand interval using unix timestamps.writeMarketPrices(SymbolAlias symbolAlias, MarketTimeInterval timeInterval, String delimiter, String dateTimeFormat) Writes market prices for the givenSymbolAliasand interval using the provided date time format when present.writeMarketPrices(SymbolAlias symbolAlias, MarketTimeInterval timeInterval, LocalDateTime start, LocalDateTime end, String delimiter, String dateTimeFormat) Writes market prices for the givenSymbolAliasand interval, filtered by the optional start and end period bounds.voidwriteMarketPrices(SymbolAlias symbolAlias, MarketTimeInterval timeInterval, LocalDateTime start, LocalDateTime end, String delimiter, String dateTimeFormat, Writer writer) Writes market prices for the givenSymbolAliasand interval to the provided writer, filtered by the optional start and end period bounds.
-
Method Details
-
writeMarketPrices
String writeMarketPrices(SymbolAlias symbolAlias, MarketTimeInterval timeInterval, String delimiter) Writes market prices for the givenSymbolAliasand interval using unix timestamps.- Parameters:
symbolAlias-SymbolAliastimeInterval-MarketTimeIntervaldelimiter- delimiter- Returns:
- string
-
writeMarketPrices
String writeMarketPrices(SymbolAlias symbolAlias, MarketTimeInterval timeInterval, String delimiter, String dateTimeFormat) Writes market prices for the givenSymbolAliasand interval using the provided date time format when present.- Parameters:
symbolAlias-SymbolAliastimeInterval-MarketTimeIntervaldelimiter- delimiterdateTimeFormat- optional date time format- Returns:
- string
-
writeMarketPrices
String writeMarketPrices(SymbolAlias symbolAlias, MarketTimeInterval timeInterval, LocalDateTime start, LocalDateTime end, String delimiter, String dateTimeFormat) Writes market prices for the givenSymbolAliasand interval, filtered by the optional start and end period bounds.- Parameters:
symbolAlias-SymbolAliastimeInterval-MarketTimeIntervalstart- optional start date time, inclusiveend- optional end date time, exclusivedelimiter- delimiterdateTimeFormat- optional date time format- Returns:
- string
-
writeMarketPrices
void writeMarketPrices(SymbolAlias symbolAlias, MarketTimeInterval timeInterval, LocalDateTime start, LocalDateTime end, String delimiter, String dateTimeFormat, Writer writer) throws IOException Writes market prices for the givenSymbolAliasand interval to the provided writer, filtered by the optional start and end period bounds.- Parameters:
symbolAlias-SymbolAliastimeInterval-MarketTimeIntervalstart- optional start date time, inclusiveend- optional end date time, exclusivedelimiter- delimiterdateTimeFormat- optional date time formatwriter- destination writer- Throws:
IOException- io exception while writing
-
validateWriterParameters
default void validateWriterParameters(SymbolAlias symbolAlias, MarketTimeInterval timeInterval, String delimiter) Validates the given parameters before writing.- Parameters:
symbolAlias-SymbolAliastimeInterval-MarketTimeIntervaldelimiter- delimiter
-