Administrator
2024-06-07 618f00314d1311c2abd994b4c445f9a2ba9a1adf
bug修复
3个文件已修改
17 ■■■■ 已修改文件
huaxin_client/l1_subscript_codes_manager.py 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
third_data/kpl_data_manager.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
trade/huaxin/huaxin_trade_server.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
huaxin_client/l1_subscript_codes_manager.py
@@ -78,14 +78,21 @@
            line = f.readline()
            while line:
                if line.strip():
                    codes_sh.append(line.strip().encode('utf-8'))
                    code = line.strip()
                    if not tool.is_can_buy_code(code):
                        continue
                    codes_sh.append(code.encode('utf-8'))
                line = f.readline()
    if os.path.exists(__CODE_SZ_PATH):
        with open(__CODE_SZ_PATH, 'r') as f:
            line = f.readline()
            while line:
                if line.strip():
                    codes_sz.append(line.strip().encode('utf-8'))
                    code = line.strip()
                    if not tool.is_can_buy_code(code):
                        continue
                    codes_sz.append(code.encode('utf-8'))
                line = f.readline()
    return codes_sh, codes_sz
third_data/kpl_data_manager.py
@@ -455,7 +455,7 @@
        log.close_print()
        while True:
            try:
                if (tool.is_trade_time() and int(tool.get_now_time_str().replace(':', '')) > int("092530")):
                if (tool.is_trade_time() and int(tool.get_now_time_str().replace(':', '')) > int("092530")) or True:
                    results = kpl_api.getLimitUpInfoNew()
                    result = json.loads(results)
                    start_time = time.time()
trade/huaxin/huaxin_trade_server.py
@@ -243,8 +243,8 @@
                        list_ = JueJinApi.get_exchanges_codes(["SHSE", "SZSE"])
                        fdatas = []
                        for d in list_:
                            if not tool.is_can_buy_code(d["sec_id"]):
                                continue
                            # if not tool.is_can_buy_code(d["sec_id"]):
                            #     continue
                            if d["sec_level"] != 1:
                                continue