Add test for add_profit

This commit is contained in:
Matthias
2019-06-30 10:24:10 +02:00
parent 0a184d380e
commit 5a11ffcad8
2 changed files with 23 additions and 5 deletions

View File

@@ -112,8 +112,6 @@ def load_trades(config) -> pd.DataFrame:
return load_trades_from_db(config["db_url"])
elif config["trade_source"] == "file":
return load_backtest_data(Path(config["exportfilename"]))
else:
return None
def extract_trades_of_period(dataframe: pd.DataFrame, trades: pd.DataFrame) -> pd.DataFrame: