Просмотр исходного кода

Update HyperliquidClient configuration to include privateKey - Added 'privateKey' to the CCXT configuration, aligning it with Hyperliquid's requirements. This change ensures compatibility with the API while maintaining the existing structure for testnet and sandbox options.

Carles Sentis 5 дней назад
Родитель
Сommit
c3fb69e164
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/hyperliquid_client.py

+ 1 - 0
src/hyperliquid_client.py

@@ -54,6 +54,7 @@ class HyperliquidClient:
                 # Initialize with Hyperliquid-specific CCXT format
                 ccxt_config = {
                     'apiKey': self.config.get('apiKey'),
+                    'privateKey': self.config.get('apiKey'),  # Same as apiKey for Hyperliquid
                     'testnet': self.config.get('testnet', False),
                     'sandbox': self.config.get('sandbox', False),
                 }