Преглед изворни кода

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