fwefwf
This commit is contained in:
Binary file not shown.
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user