ソースを参照

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 日 前
コミット
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),
                 }