fewfef
This commit is contained in:
5
test.py
5
test.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user