public interface TimeSeriesProvider
This plugin point allows a market data supplier of time-series to be provided.
| Modifier and Type | Method and Description |
|---|---|
static TimeSeriesProvider |
empty()
Returns a time-series provider that returns an empty time-series for any ID.
|
static TimeSeriesProvider |
none()
Returns a time-series provider that is unable to source any time-series.
|
Result<LocalDateDoubleTimeSeries> |
provideTimeSeries(ObservableId identifier)
Provides the time-series for the specified identifier.
|
static TimeSeriesProvider none()
All requests for a time-series will return a failure. This is used to validate that no time-series have been requested that were not already supplied in the input to the market data factory.
static TimeSeriesProvider empty()
All requests for a time-series will succeed, returning an empty time-series. This is used for those cases where time-series are considered optional.
Result<LocalDateDoubleTimeSeries> provideTimeSeries(ObservableId identifier)
The implementation will provide a time-series for the identifier, returning a failure if unable to do so.
identifier - the market data identifier to findCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.