fix, if an non existing trade_id is provided
This commit is contained in:
parent
3ea33d1737
commit
d21eff0d52
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user