|
@@ -53,12 +53,16 @@ class HyperliquidClient:
|
|
|
|
|
|
# Initialize with Hyperliquid-specific CCXT format
|
|
|
ccxt_config = {
|
|
|
- 'privateKey': self.config.get('privateKey') or self.config.get('apiKey'),
|
|
|
+ 'apiKey': self.config.get('apiKey'),
|
|
|
'testnet': self.config.get('testnet', False),
|
|
|
'sandbox': self.config.get('sandbox', False),
|
|
|
}
|
|
|
|
|
|
- # Add secret if available (though Hyperliquid might not need it)
|
|
|
+ # Add walletAddress - this is required by CCXT Hyperliquid
|
|
|
+ if self.config.get('walletAddress'):
|
|
|
+ ccxt_config['walletAddress'] = self.config['walletAddress']
|
|
|
+
|
|
|
+ # Add secret if available
|
|
|
if self.config.get('secret'):
|
|
|
ccxt_config['secret'] = self.config['secret']
|
|
|
|