Merge pull request #2444 from freqtrade/sql_cleanup

Fix scoped_session and add Documentation for strategy
This commit is contained in:
hroff-1902
2019-10-31 23:19:30 +03:00
committed by GitHub
6 changed files with 170 additions and 45 deletions

View File

@@ -768,7 +768,7 @@ class FreqtradeBot:
buy_timeout_threshold = arrow.utcnow().shift(minutes=-buy_timeout).datetime
sell_timeout_threshold = arrow.utcnow().shift(minutes=-sell_timeout).datetime
for trade in Trade.query.filter(Trade.open_order_id.isnot(None)).all():
for trade in Trade.get_open_order_trades():
try:
# FIXME: Somehow the query above returns results
# where the open_order_id is in fact None.