FileDataSource should implement a generic DataSource interface and be able to load a csv file of historical prices and volumes. It should return a Pandas Series-like object (can just use an actual Series for now) for each price/volume series. Might be good to just have each query return one series.
TODOs:
[ ] DataSource interface
[ ] FileDataSource class
[ ] In PriceVolume.__init__, replace fetching data with simply passing in price and volume series
[ ] Update the pipelines for the new logic: the file data sources will need to be called. One idea is to pass in DataSources as arguments to the pipeline function, and ApiDataSources can be defaults.
Last two items will prepare the step to replacing PriceVolume with a ReferenceMarket.
FileDataSource
should implement a genericDataSource
interface and be able to load a csv file of historical prices and volumes. It should return a Pandas Series-like object (can just use an actual Series for now) for each price/volume series. Might be good to just have each query return one series.TODOs:
DataSource
interfaceFileDataSource
classPriceVolume.__init__
, replace fetching data with simply passing inprice
andvolume
seriesDataSource
s as arguments to the pipeline function, andApiDataSource
s can be defaults.Last two items will prepare the step to replacing
PriceVolume
with aReferenceMarket
.