Administrator
2023-12-22 3b8d0024d7b030894c3cb506c79e8f5676a0b4db
test/test_code_attribute.py
@@ -10,7 +10,7 @@
if __name__ == "__main__":
    code_str = "002861"
    code_str = "002915"
    codes = code_str.split(",")
    for code in codes:
        if not tool.is_shsz_code(code):
@@ -18,13 +18,6 @@
        try:
            limit_up_price = 16.96
            volumes_data = init_data_util.get_volumns_by_code(code, 150)
            volumes_data = volumes_data[1:]
            volumes = init_data_util.parse_max_volume(volumes_data[:90],
                                                      code_nature_analyse.is_new_top(
                                                          limit_up_price,
                                                          volumes_data[:90]) or code_nature_analyse.is_near_top(
                                                          limit_up_price,
                                                          volumes_data[:90]))
            print(volumes)
            is_too_high(volumes_data)
        except:
            print(code, "出错")