chore: simplify MarginMode init

This commit is contained in:
Matthias
2026-02-10 19:01:08 +01:00
parent abf5f2b49a
commit 6df42502ac

View File

@@ -207,7 +207,7 @@ class Exchange:
self._config.get("trading_mode", self._supported_trading_mode_margin_pairs[0][0])
)
self.margin_mode: MarginMode = MarginMode(
MarginMode(self._config.get("margin_mode"))
self._config["margin_mode"]
if self._config.get("margin_mode")
else self._supported_trading_mode_margin_pairs[0][1]
)