소스 검색

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),
                 }