mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
fix: only consider filled orders
This commit is contained in:
@@ -1934,6 +1934,7 @@ class Trade(ModelBase, LocalTrade):
|
||||
.filter(
|
||||
*filters,
|
||||
Order.ft_order_side == case((Trade.is_short.is_(True), "sell"), else_="buy"),
|
||||
Order.filled > 0,
|
||||
)
|
||||
.group_by(*columns)
|
||||
.cte("pair_costs")
|
||||
|
||||
Reference in New Issue
Block a user