Administrator
2024-05-21 febdf14b1884ffae862f5d7139cd2b7053d73750
bug修复
2个文件已修改
14 ■■■■ 已修改文件
log_module/log_export.py 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
output/l2_output_util.py 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
log_module/log_export.py
@@ -205,8 +205,14 @@
                continue
            if line.find("真实下单位置") > 0:
                print(line)
                str_ = line.split(":")[1].strip()
                pos = int(eval(str_.split("-")[1].strip())[0])
                print(str_)
                try:
                    pos = int(eval(str_.split("-")[1].strip())[0])
                except:
                    pos = int(eval(str_.split("-")[1].strip()))
                # print("信号起始位置:", index)
                pos_list.append(pos)
    return pos_list
@@ -619,7 +625,7 @@
if __name__ == '__main__':
    fdatas = load_huaxin_big_buy_order()
    fdatas = get_real_place_order_positions("002404")
    print(len(fdatas))
    # print(get_h_cancel_compute_info("603912"))
output/l2_output_util.py
@@ -13,6 +13,7 @@
    dealing_info = HuaXinBuyOrderManager.get_dealing_order_info(code)
    total_datas = l2_data_util.local_today_datas.get(code)
    for i in range(start_index, end_index, step):
        # 真实下单位置不管是否撤单都需要加入队列
        data = total_datas[i]
        val = data['val']
        if not L2DataUtil.is_limit_up_price_buy(val):
@@ -23,7 +24,7 @@
                                                                                                 total_datas,
                                                                                                 local_today_canceled_buyno_map.get(
                                                                                                     code))
        if left_count > 0:
        if left_count > 0 or real_place_order_index == i:
            type_ = 0
            num = val['num']
            if dealing_info and str(total_datas[i]["val"]["orderNo"]) == str(
@@ -32,6 +33,7 @@
                num -= dealing_info[1] // 100
            if i == real_place_order_index:
                type_ = 1
                has_real_order_index = True
            elif num * float(val['price']) >= 29900:
                type_ = 2