fix(hyperliquid): dex balance requests are only necessary in non-unified mode
This commit is contained in:
@@ -169,6 +169,8 @@ class Hyperliquid(Exchange):
|
|||||||
if self.unified_account:
|
if self.unified_account:
|
||||||
params["type"] = "spot"
|
params["type"] = "spot"
|
||||||
balances = super().get_balances(params)
|
balances = super().get_balances(params)
|
||||||
|
if not self.unified_account:
|
||||||
|
# In unified accounts, the balance already includes all DEXes
|
||||||
dexes = self._get_configured_hip3_dexes()
|
dexes = self._get_configured_hip3_dexes()
|
||||||
for dex in dexes:
|
for dex in dexes:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user