Use kwarg to call persistence.init()

This commit is contained in:
Matthias 2019-06-01 06:26:03 +02:00
parent b6e8fecbf5
commit 338f2a2322

View File

@ -55,7 +55,8 @@ timeZone = pytz.UTC
def load_trades(args: Namespace, pair: str, timerange: TimeRange) -> pd.DataFrame:
trades: pd.DataFrame = pd.DataFrame()
if args.db_url:
persistence.init(args.db_url, False)
persistence.init(args.db_url, clean_open_orders=False)
columns = ["pair", "profit", "open_time", "close_time",
"open_rate", "close_rate", "duration"]