Adopt plot_dataframe to work with --live

This commit is contained in:
Matthias
2018-12-30 07:20:03 +01:00
parent a9abc25785
commit f0af4601f9
4 changed files with 5 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ class DataProvider(object):
@property
def available_pairs(self) -> List[str]:
"""
Return a list of pairs for which data is currently cached.
Return a list of tuples containing pair, tick_interval for which data is currently cached.
Should be whitelist + open trades.
"""
return list(self._exchange._klines.keys())

View File

@@ -579,7 +579,7 @@ class Exchange(object):
"""
try:
# fetch ohlcv asynchronously
logger.debug("fetching %s since %s ...", pair, since_ms)
logger.debug("fetching %s, %s since %s ...", pair, tick_interval, since_ms)
data = await self._api_async.fetch_ohlcv(pair, timeframe=tick_interval,
since=since_ms)

View File

@@ -43,7 +43,7 @@ def patch_get_signal(freqtrade: FreqtradeBot, value=(True, False)) -> None:
:return: None
"""
freqtrade.strategy.get_signal = lambda e, s, t: value
freqtrade.exchange.refresh_latest_ohlcv = lambda p, i: None
freqtrade.exchange.refresh_latest_ohlcv = lambda p: None
def patch_RPCManager(mocker) -> MagicMock: