Procházet zdrojové kódy

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 před 5 dny
rodič
revize
c3fb69e164
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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),
                 }