This commit is contained in:
Administrator
2026-02-06 02:17:50 +08:00
parent bb6341763a
commit a52d9270d9
3 changed files with 9 additions and 9 deletions

View File

@@ -31,13 +31,13 @@ class BitmartFuturesTransaction:
self.last_kline_time = None # 上一次处理的K线时间戳用于判断是否是新K线
# 反手频率控制
self.reverse_cooldown_seconds = 2 * 60 # 反手冷却时间(秒)
self.reverse_min_move_pct = 0.15 # 反手最小价差过滤(百分比)
self.reverse_cooldown_seconds = 1.5 * 60 # 反手冷却时间(秒)
self.reverse_min_move_pct = 0.05 # 反手最小价差过滤(百分比)
self.last_reverse_time = None # 上次反手时间
self.leverage = "100" # 高杠杆(全仓模式下可开更大仓位)
self.open_type = "cross" # 全仓模式
self.risk_percent = 0.01 # 每次开仓使用可用余额的 1%
self.risk_percent = 0 # 每次开仓使用可用余额的 1%
self.take_profit_usd = 5 # 仓位盈利达到此金额(美元)时平仓止盈
self.open_avg_price = None # 开仓价格
@@ -601,11 +601,11 @@ class BitmartFuturesTransaction:
logger.warning(f"交易执行失败或被阻止: {signal[0]}")
# 6. 短暂等待后继续循环同一根K线遇到信号就操作
time.sleep(0.5)
time.sleep(0.1)
if page_start:
self.page.close()
time.sleep(25)
time.sleep(5)
page_start = True

Binary file not shown.

View File

@@ -31,10 +31,10 @@ LOCAL_TZ = ZoneInfo("America/New_York")
# 代理(可选)
PROXY = {
'proxy_type': "socks5",
'addr': "202.155.144.102",
'port': 31102,
'username': "SyNuejCtrQ",
'password': "MH8ioL7EXf"
'addr': "199.168.137.123",
'port': 12345,
'username': "haha",
'password': "haha"
}
INVITE_LINK = "https://www.websea.my/en/signup?key=77346588" # 请填入您的邀请链接