Update freqtrade/persistence/models.py
Co-authored-by: Matthias <xmatthias@outlook.com>
This commit is contained in:
parent
54ef36a497
commit
982deeedf0
@ -846,7 +846,7 @@ class Trade(_DECL_BASE, LocalTrade):
|
|||||||
func.sum(Trade.close_profit).label('profit_sum'),
|
func.sum(Trade.close_profit).label('profit_sum'),
|
||||||
func.sum(Trade.close_profit_abs).label('profit_sum_abs'),
|
func.sum(Trade.close_profit_abs).label('profit_sum_abs'),
|
||||||
func.count(Trade.pair).label('count')
|
func.count(Trade.pair).label('count')
|
||||||
).filter(filters)\
|
).filter(*filters)\
|
||||||
.group_by(Trade.pair) \
|
.group_by(Trade.pair) \
|
||||||
.order_by(desc('profit_sum_abs')) \
|
.order_by(desc('profit_sum_abs')) \
|
||||||
.all()
|
.all()
|
||||||
|
Loading…
Reference in New Issue
Block a user