persistence.init does not need the config dict

This commit is contained in:
Matthias
2019-05-29 19:54:47 +02:00
parent 6451feee0e
commit d7bebc4385
4 changed files with 16 additions and 17 deletions

View File

@@ -55,7 +55,7 @@ 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(_CONF)
persistence.init(args.db_url, True)
columns = ["pair", "profit", "open_time", "close_time",
"open_rate", "close_rate", "duration"]