瀏覽代碼

Increment BOT_VERSION to 2.2.140 and update stop price handling in HyperliquidClient.

- Updated BOT_VERSION for the upcoming release.
- Modified the stop price parameter in the HyperliquidClient to use the trigger price for slippage protection, enhancing order execution accuracy.
Carles Sentis 2 天之前
父節點
當前提交
033e9f0e51
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/clients/hyperliquid_client.py
  2. 1 1
      trading_bot.py

+ 1 - 1
src/clients/hyperliquid_client.py

@@ -490,7 +490,7 @@ class HyperliquidClient:
                 'market',  # Order type to execute when triggered
                 side, 
                 amount, 
-                None,      # Price is None for market orders
+                stop_price_arg, # Use trigger price for slippage protection
                 params=trigger_params
             )
             

+ 1 - 1
trading_bot.py

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