mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 14:00:38 +00:00
fix: DEX's are isolated margin only
This commit is contained in:
@@ -69,6 +69,12 @@ class Hyperliquid(Exchange):
|
||||
configured = self._get_configured_hip3_dexes()
|
||||
if not configured or not self.markets:
|
||||
return
|
||||
if configured and self.margin_mode != MarginMode.ISOLATED:
|
||||
raise OperationalException(
|
||||
"HIP-3 DEXes require 'isolated' margin mode. "
|
||||
f"Current margin mode: '{self.margin_mode.value}'. "
|
||||
"Please update your configuration!"
|
||||
)
|
||||
|
||||
available = {
|
||||
m.get("info", {}).get("dex")
|
||||
|
||||
Reference in New Issue
Block a user