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()
|
configured = self._get_configured_hip3_dexes()
|
||||||
if not configured or not self.markets:
|
if not configured or not self.markets:
|
||||||
return
|
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 = {
|
available = {
|
||||||
m.get("info", {}).get("dex")
|
m.get("info", {}).get("dex")
|
||||||
|
|||||||
Reference in New Issue
Block a user