From 0c7591984ed40d784c774bf862d7f96b8174cf6f Mon Sep 17 00:00:00 2001 From: Administrator Date: Mon, 15 Dec 2025 16:13:00 +0800 Subject: [PATCH] =?UTF-8?q?weex=E4=BC=98=E5=8C=96=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- telegram/8619211027341.session | Bin 45056 -> 45056 bytes 交易/weex_交易.py | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/telegram/8619211027341.session b/telegram/8619211027341.session index 7899ec73088b7d7d70a72ba489922278b58d8507..75ca1de0a4b6eea106b3a76ea59d0fd38c2463bd 100644 GIT binary patch delta 67 zcmZp8z|`=7X@V4!0>eZZCm^{oVM#8RB&Xvo{|`OVi`P!(%Ts1Lq_^2P?*t3eA^pvN WizYEL9WvNFu|&xl$e+A*y*B_V?HOwT delta 67 zcmZp8z|`=7X@V4!{FR9^PC#;F!jfDriO-I={NGJ+i4&R3m#56M%Wt!B-U$|_T>+c_ W7ENMg+7-BYVu_M9kUx3rdT#)k;v232 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