Fix sequence of loading trades

This commit is contained in:
Matthias
2019-06-22 15:45:20 +02:00
parent d8286d7a98
commit de38aea164
4 changed files with 30 additions and 18 deletions

View File

@@ -125,8 +125,9 @@ def analyse_and_plot_pairs(config: Dict[str, Any]):
tickers[pair] = data
dataframe = generate_dataframe(strategy, tickers, pair)
trades = load_trades(db_url=config["db_url"],
exportfilename=config["exportfilename"])
trades = load_trades(exportfilename=config["exportfilename"],
db_url=config["db_url"],
)
trades = trades.loc[trades['pair'] == pair]
trades = extract_trades_of_period(dataframe, trades)