Administrator
2024-04-15 dc6e9831b77984b280b08ebb546a7ddf7e22733b
log_module/log_export.py
@@ -531,9 +531,7 @@
def load_huaxin_active_sell_map(date=tool.get_now_date_str()):
    path = f"{constant.get_path_prefix()}/logs/huaxin/trade/l2_active_sell.{date}.log"
    fdatas = {}
    if os.path.exists(path):
        with open(path, 'r', encoding="utf-8") as f:
            lines = f.readlines()
    lines = __load_file_content(path)
            for line in lines:
                if line:
                    try:
@@ -546,7 +544,6 @@
                        code = data[:data.find(" ")].strip()
                        data = data[data.find(" "):].strip()
                        data = eval(data)
                        l2_data = eval(data.split("#")[1])
                        if code not in fdatas:
                            fdatas[code] = set()
                        fdatas[code].add(data[0])
@@ -556,7 +553,7 @@
if __name__ == '__main__':
    fdatas = load_huaxin_transaction_sell_no("600990")
    fdatas = load_huaxin_active_sell_map()
    print(len(fdatas))
    # print(get_h_cancel_compute_info("603912"))