huaxin_client/tool.py
@@ -18,7 +18,7 @@ # 是否为交易前时间:9:25:00到9:30:00 def is_pre_trade_time(): relative_timestamp = time.time() % (24 * 60 * 60) + 8 * 60 * 60 start1 = 60 * 60 * 9 + 24 * 60 start1 = 60 * 60 * 9 + 19 * 60 end1 = 60 * 60 * 9 + 29 * 60 if start1 < relative_timestamp < end1: return True