This commit is contained in:
Administrator
2025-12-13 05:37:38 +08:00
parent c252ce4a6e
commit 75ad479844
2 changed files with 9 additions and 5 deletions

Binary file not shown.

View File

@@ -318,7 +318,7 @@ class WeexTransaction:
self.pbar.refresh()
# 必须是整点或半点及前 5 分钟
if minute not in [0, 1, 2, 3, 4, 5, 30, 31, 32, 33, 34,35]:
if minute not in [0, 1, 2, 3, 4, 5, 30, 31, 32, 33, 34, 35]:
time.sleep(8)
continue
@@ -350,10 +350,14 @@ class WeexTransaction:
# ---- 刷新页面 ----
self.page.get("https://derivatives.bitmart.com/zh-CN/futures/ETHUSDT")
# ---- 获取仓位 ----
if not self.get_position_status():
self.ding("获取仓位失败!", error=True)
continue
for i in range(3):
# ---- 获取仓位 ----
if not self.get_position_status():
self.ding("获取仓位失败!", error=True)
continue
if self.start:
break
# ---- 止损平仓 ----
try: