Provide available pairs

This commit is contained in:
Matthias
2018-12-26 14:23:21 +01:00
parent f034235af4
commit d3a37db79a
2 changed files with 23 additions and 5 deletions

View File

@@ -29,6 +29,14 @@ class DataProvider(object):
"""
self._exchange.refresh_tickers(pairlist, self._config['ticker_interval'])
@property
def available_pairs(self) -> List[str]:
"""
Return a list of pairs for which data is currently cached.
Should be whitelist + open trades.
"""
return list(self._exchange._klines.keys())
def ohlcv(self, pair: str, copy: bool = True) -> List[str]:
"""
get ohlcv data for the given pair as DataFrame