This commit is contained in:
27942
2025-12-23 11:12:32 +08:00
parent 5d01feb385
commit 49940862b1
12 changed files with 2365 additions and 1550 deletions

View File

@@ -18,7 +18,7 @@ class StrategyConfig:
# ===== 合约 =====
contract_symbol: str = "ETHUSDT"
open_type: str = "cross"
leverage: str = "2" # 1~2 更稳
leverage: str = "50" # 1~2 更稳
# ===== K线与指标 =====
step_min: int = 1
@@ -40,7 +40,7 @@ class StrategyConfig:
cooldown_sec_after_exit: int = 10 # 平仓后冷却10秒防抖
# ===== 下单/仓位 =====
risk_percent: float = 0.0015 # 每次用可用余额的0.15%作为保证金预算
risk_percent: float = 0.005 # 每次用可用余额的0.15%作为保证金预算
min_size: int = 1
max_size: int = 5000
@@ -530,3 +530,4 @@ if __name__ == "__main__":
bot.action()
# 9274.08
# 9260.59