Fix missing column to load current backtesting export files

This commit is contained in:
Matthias 2018-09-17 19:44:40 +02:00
parent eebaede80d
commit 14e21765f2
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ def load_trades(args: Namespace, pair: str, timerange: TimeRange) -> pd.DataFram
file = Path(args.exportfilename)
# must align with columns in backtest.py
columns = ["pair", "profit", "opents", "closets", "index", "duration",
"open_rate", "close_rate", "open_at_end"]
"open_rate", "close_rate", "open_at_end", "sell_reason"]
with file.open() as f:
data = json.load(f)
trades = pd.DataFrame(data, columns=columns)