fwefwf
This commit is contained in:
Binary file not shown.
Binary file not shown.
BIN
telegram/bot_session.session-journal
Normal file
BIN
telegram/bot_session.session-journal
Normal file
Binary file not shown.
BIN
telegram/sign.db
BIN
telegram/sign.db
Binary file not shown.
@@ -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("获取最新价格有问题!!!")
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user