diff --git a/scripts/plot_dataframe.py b/scripts/plot_dataframe.py index 122c002a8..ce1a4b819 100755 --- a/scripts/plot_dataframe.py +++ b/scripts/plot_dataframe.py @@ -91,7 +91,7 @@ def plot_analyzed_dataframe(args: Namespace) -> None: tickers[pair] = exchange.get_ticker_history(pair, tick_interval) else: tickers = optimize.load_data( - datadir=args.datadir, + datadir=_CONF.get("datadir"), pairs=[pair], ticker_interval=tick_interval, refresh_pairs=_CONF.get('refresh_pairs', False), diff --git a/scripts/plot_profit.py b/scripts/plot_profit.py index 803bf71de..012446065 100755 --- a/scripts/plot_profit.py +++ b/scripts/plot_profit.py @@ -121,7 +121,7 @@ def plot_profit(args: Namespace) -> None: logger.info('Filter, keep pairs %s' % pairs) tickers = optimize.load_data( - datadir=args.datadir, + datadir=config.get('datadir'), pairs=pairs, ticker_interval=tick_interval, refresh_pairs=False,