diff --git a/telegram/8619211027341.session b/telegram/8619211027341.session index f73dd9d..a4bc829 100644 Binary files a/telegram/8619211027341.session and b/telegram/8619211027341.session differ diff --git a/telegram/bot_session.session b/telegram/bot_session.session index a28b29e..ae0d668 100644 Binary files a/telegram/bot_session.session and b/telegram/bot_session.session differ diff --git a/telegram/bot_session.session-journal b/telegram/bot_session.session-journal deleted file mode 100644 index f1aaf4d..0000000 Binary files a/telegram/bot_session.session-journal and /dev/null differ diff --git a/telegram/sign.db b/telegram/sign.db index 47d80c1..8299910 100644 Binary files a/telegram/sign.db and b/telegram/sign.db differ diff --git a/交易/bitmart_优化版.py b/交易/bitmart_优化版.py index 93a486d..5d52737 100644 --- a/交易/bitmart_优化版.py +++ b/交易/bitmart_优化版.py @@ -190,7 +190,7 @@ class WeexTransaction: 'unit': '30', 'resolution': 'M', 'contractID': '2', - 'offset': '340', + 'offset': '1', 'endTime': str(int(time.time())), } @@ -198,7 +198,7 @@ class WeexTransaction: try: res = self.session.get( 'https://contract-v2.bitmart.com/v1/ifcontract/quote/kline', - params=params, timeout=5 + params=params, timeout=15 ) datas = [] @@ -322,9 +322,9 @@ class WeexTransaction: self.pbar.refresh() # 必须是整点或半点及前 5 分钟 - if minute not in [0, 1, 2, 3, 4, 5, 30, 31, 32, 33, 34, 35]: - time.sleep(8) - return + # if minute not in [0, 1, 2, 3, 4, 5, 30, 31, 32, 33, 34, 35]: + # time.sleep(8) + # return # 时间重复跳过 if self.time_start == self.get_half_hour_timestamp(): @@ -398,4 +398,8 @@ class WeexTransaction: if __name__ == '__main__': - WeexTransaction(tge_id=196495).action() + while True: + try: + WeexTransaction(tge_id=196495).action() + except: + time.sleep(5)