diff --git a/telegram/8619211027341.session b/telegram/8619211027341.session index 27ddaae..c88a9fa 100644 Binary files a/telegram/8619211027341.session and b/telegram/8619211027341.session differ diff --git a/交易/bitmart_优化版.py b/交易/bitmart_优化版.py index cd58032..a5a2374 100644 --- a/交易/bitmart_优化版.py +++ b/交易/bitmart_优化版.py @@ -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: