mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-29 10:20:25 +00:00
fix: use "other trades" logic for binance cross calc
This commit is contained in:
@@ -192,6 +192,9 @@ class Binance(Exchange):
|
||||
mm_ex_1: float = 0.0
|
||||
upnl_ex_1: float = 0.0
|
||||
for trade in open_trades:
|
||||
if trade["pair"] == pair:
|
||||
# Only "other" trades are considered
|
||||
continue
|
||||
mm_ratio1, maint_amnt1 = self.get_maintenance_ratio_and_amt(
|
||||
trade["pair"], trade["stake_amount"]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user