From 6347161975591e6cb0d9721df52de98003c13ef2 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 30 May 2019 20:26:46 +0200 Subject: [PATCH] don't use print in plot_dataframe --- scripts/plot_dataframe.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/plot_dataframe.py b/scripts/plot_dataframe.py index 7457aadc4..a20d8abae 100755 --- a/scripts/plot_dataframe.py +++ b/scripts/plot_dataframe.py @@ -67,7 +67,7 @@ def load_trades(db_url: str = None, exportfilename: str = None) -> pd.DataFrame: "open_rate", "close_rate", "duration"] for x in Trade.query.all(): - print("date: {}".format(x.open_date)) + logger.info("date: {}".format(x.open_date)) trades = pd.DataFrame([(t.pair, t.calc_profit(), t.open_date.replace(tzinfo=timeZone), @@ -114,7 +114,6 @@ def get_trading_env(args: Namespace): # Load the configuration _CONF.update(setup_configuration(args, RunMode.BACKTEST)) - print(_CONF) pairs = args.pairs.split(',') if pairs is None: @@ -161,7 +160,7 @@ def get_tickers_data(strategy, exchange, pairs: List[str], timerange: TimeRange, if data.empty: del tickers[pair] logger.info( - 'An issue occured while retreiving datas of %s pair, please retry ' + 'An issue occured while retreiving data of %s pair, please retry ' 'using -l option for live or --refresh-pairs-cached', pair) return tickers @@ -273,6 +272,7 @@ def plot_parse_args(args: List[str]) -> Namespace: arguments.backtesting_options(arguments.parser) return arguments.parse_args() + def main(sysargv: List[str]) -> None: """ This function will initiate the bot and start the trading loop.