This commit is contained in:
Administrator
2025-12-12 16:28:50 +08:00
parent 510dfe9875
commit 877b94a99d
6 changed files with 5 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -298,7 +298,7 @@ class WeexTransaction:
response = self.session.get(
'https://derivatives.bitmart.com/gw-api/contract-tiger/forward/v1/ifcontract/userPositions',
params=params,
impersonate="chrome120"
)
try:
@@ -376,17 +376,18 @@ class WeexTransaction:
self.pbar.refresh()
if current_minute not in [0, 1, 2, 3, 4, 5, 30, 31, 32, 33, 34]: # 判断是否是 新的30分钟了
# if current_minute not in range(60): # 判断是否是 新的30分钟了
# if current_minute not in range(60): # 判断是否是 新的30分钟了
time.sleep(10)
continue
if self.get_now_time() != int(self.kline_3["id"]):
if not self.kline_3 or self.get_now_time() != int(self.kline_3["id"]):
if self.get_token(): # 获取token
logger.info("获取token成功!!!")
else:
logger.info("获取token失败")
self.send_dingtalk_message(message_content=f"获取token失败", type=0)
continue
new_price_datas = self.get_price()
if not new_price_datas:
logger.info("获取最新价格有问题!!!")

View File

@@ -348,7 +348,7 @@ class WeexTransaction:
time.sleep(10)
continue
if self.get_now_time() != self.kline_3["id"]:
if not self.kline_3 or self.get_now_time() != self.kline_3["id"]:
if self.get_token(): # 获取token
logger.info("获取token成功!!!")
else: