BLD: fixed the marketplace api in the algo runtime

This commit is contained in:
Frederic Fortier
2018-02-07 13:10:07 -05:00
parent e071f6ec8d
commit 866b92910f
4 changed files with 34 additions and 61 deletions
+3 -4
View File
@@ -171,13 +171,12 @@ class ExchangeTradingAlgorithmBase(TradingAlgorithm):
return round_nearest(amount, asset.min_trade_size)
@api_method
def get_data_source(self, data_source_name, data_frequency=None,
start=None, end=None):
def get_dataset(self, data_source_name, start=None, end=None):
if self._marketplace is None:
self._marketplace = Marketplace()
return self._marketplace.get_data_source(
data_source_name, data_frequency, start, end,
return self._marketplace.get_dataset(
data_source_name, start, end,
)
@api_method