diff --git a/telegram/8619211027341.session b/telegram/8619211027341.session index 7899ec7..75ca1de 100644 Binary files a/telegram/8619211027341.session and b/telegram/8619211027341.session differ diff --git a/交易/weex_交易.py b/交易/weex_交易.py index 9290918..f47a602 100644 --- a/交易/weex_交易.py +++ b/交易/weex_交易.py @@ -144,7 +144,7 @@ class WeexTransaction: response = self.session.get('https://http-gateway2.elconvo.com/api/v1/public/quote/v1/getKlineV2', params=params, ) - for i in response.json()["data"]: + for i in response.json()["data"]["dataList"]: insert_data = { 'id': int(i[4]), 'open': float(i[3]), @@ -225,7 +225,7 @@ class WeexTransaction: # 将目标 datetime 对象转换为时间戳 target_timestamp = target_datetime.timestamp() - return int(target_timestamp) + return int(target_timestamp) * 1000 def close_extra_tabs_in_browser(self): @@ -353,7 +353,7 @@ class WeexTransaction: self.pbar.refresh() if current_minute not in [0, 1, 2, 3, 4, 5, 30, 31, 32, 33, 34, 35]: # 判断是否是 新的30分钟了 - # if current_minute not in range(60): # 判断是否是 新的30分钟了 + # if current_minute not in range(60): # 判断是否是 新的30分钟了 time.sleep(10) continue