| | |
| | | return fdatas |
| | | |
| | | |
| | | # 加载华鑫本地买入订单号 |
| | | def load_huaxin_local_buy_no(): |
| | | path = f"{constant.get_path_prefix()}/logs/huaxin_local/l2/l2_buy_no.{tool.get_now_date_str()}.log" |
| | | fdatas = {} |
| | | if os.path.exists(path): |
| | | with open(path, 'r', encoding="utf-8") as f: |
| | | lines = f.readlines() |
| | | for line in lines: |
| | | if line: |
| | | data = line.split("-")[1].strip() |
| | | code = data.split("#")[0] |
| | | buy_no = int(data.split("#")[1]) |
| | | if code not in fdatas: |
| | | fdatas[code] = set() |
| | | fdatas[code].add(buy_no) |
| | | return fdatas |
| | | |
| | | |
| | | if __name__ == '__main__': |
| | | logger_l2_process_time.info("test123") |
| | | # print(get_h_cancel_compute_info("603912")) |