chore: Be more precise with binance account limitation

This commit is contained in:
Matthias
2024-12-08 11:44:35 +01:00
parent 8dc322d7f2
commit 193b989342

View File

@@ -91,7 +91,10 @@ class Binance(Exchange):
"\nHedge Mode is not supported by freqtrade. " "\nHedge Mode is not supported by freqtrade. "
"Please change 'Position Mode' on your binance futures account." "Please change 'Position Mode' on your binance futures account."
) )
if assets_margin.get("multiAssetsMargin") is True: if (
assets_margin.get("multiAssetsMargin") is True
and self.margin_mode != MarginMode.CROSS
):
msg += ( msg += (
"\nMulti-Asset Mode is not supported by freqtrade. " "\nMulti-Asset Mode is not supported by freqtrade. "
"Please change 'Asset Mode' on your binance futures account." "Please change 'Asset Mode' on your binance futures account."