Преглед на файлове

Enhance HyperliquidClient by masking privateKey in safe configuration for improved security.

Carles Sentis преди 3 дни
родител
ревизия
eeedfb3c92
променени са 2 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 2 0
      src/clients/hyperliquid_client.py
  2. 1 1
      trading_bot.py

+ 2 - 0
src/clients/hyperliquid_client.py

@@ -102,6 +102,8 @@ class HyperliquidClient:
         safe_config = config.copy()
         if 'apiKey' in safe_config and safe_config['apiKey']:
             safe_config['apiKey'] = f"{safe_config['apiKey'][:8]}..."
+        if 'privateKey' in safe_config and safe_config['privateKey']:
+            safe_config['privateKey'] = f"{safe_config['privateKey'][:8]}..."
         if 'walletAddress' in safe_config and safe_config['walletAddress']:
             safe_config['walletAddress'] = f"{safe_config['walletAddress'][:8]}..."
         if 'secret' in safe_config and safe_config['secret']:

+ 1 - 1
trading_bot.py

@@ -14,7 +14,7 @@ from datetime import datetime
 from pathlib import Path
 
 # Bot version
-BOT_VERSION = "2.4.230"
+BOT_VERSION = "2.4.231"
 
 # Add src directory to Python path
 sys.path.insert(0, str(Path(__file__).parent / "src"))