mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-17 13:21:15 +00:00
fix: no tradeID only returns open trades
This commit is contained in:
@@ -1102,8 +1102,8 @@ class RPC:
|
||||
if trade_id:
|
||||
trades = Trade.get_trades(trade_filter=[Trade.id == trade_id]).all()
|
||||
else:
|
||||
# If no trade_id, get all trades
|
||||
trades = Trade.get_trades().all()
|
||||
# If no trade_id, get all open trades
|
||||
trades = Trade.get_open_trades()
|
||||
|
||||
if not trades:
|
||||
return []
|
||||
|
||||
Reference in New Issue
Block a user