fix, if an non existing trade_id is provided

This commit is contained in:
Andreas Brunner 2021-01-17 21:21:31 +01:00
parent 3ea33d1737
commit d21eff0d52

View File

@ -151,7 +151,7 @@ class RPC:
"""
# Fetch open trades
if trade_ids:
trades = Trade.get_trades(trade_filter=Trade.id.in_(trade_ids))
trades = Trade.get_trades(trade_filter=Trade.id.in_(trade_ids)).all()
else:
trades = Trade.get_open_trades()