Extract get_trades function

This commit is contained in:
Matthias
2019-10-29 15:01:10 +01:00
parent 01efebc42f
commit 26a5800a7f
2 changed files with 24 additions and 9 deletions

View File

@@ -106,7 +106,7 @@ def load_trades_from_db(db_url: str) -> pd.DataFrame:
t.stop_loss, t.initial_stop_loss,
t.strategy, t.ticker_interval
)
for t in Trade.query.all()],
for t in Trade.get_trades().all()],
columns=columns)
return trades