| | |
| | | codes_sh, codes_sz = l1_subscript_codes_manager.get_codes() |
| | | codes |= set([x.decode() for x in codes_sh]) |
| | | codes |= set([x.decode() for x in codes_sz]) |
| | | day = tool.get_now_date_str() |
| | | schedule.every().day.at("08:05:00").do(lambda: KPLCodeJXBlocksManager(day, codes).start_download_blocks()) |
| | | # day = tool.get_now_date_str() |
| | | # schedule.every().day.at("08:05:00").do(lambda: KPLCodeJXBlocksManager(day, codes).start_download_blocks()) |
| | | schedule.every().day.at("08:10:00").do(lambda: update_leading_limit_up_datas()) |
| | | schedule.every().day.at("08:30:00").do(lambda: update_leading_limit_up_datas()) |
| | | schedule.every().day.at("08:50:00").do(lambda: update_leading_limit_up_datas()) |
| | | schedule.every().day.at("09:05:00").do(lambda: update_leading_limit_up_datas()) |
| | | while True: |
| | | try: |
| | | schedule.run_pending() |
| | |
| | | # 板块只能买入2个代码 |
| | | if sv.板块成交代码: |
| | | can_buy_plates -= set([p for p in sv.板块成交代码 if len(sv.板块成交代码[p]) >= settings.max_buy_codes_count_per_plate]) |
| | | if not can_buy_plates: |
| | | return False, f"板块已有成交" |
| | | |
| | | if not can_buy_plates: |
| | | return False, f"没有涨停的板块: {[(plate, sv.开盘啦最正板块涨停.get(plate)) for plate in sv.代码板块 if sv.开盘啦最正板块涨停]} 连续老题材:{sv.连续老题材}" |
| | |
| | | "2025-05-30", "2025-06-03", "2025-06-04", "2025-06-05", "2025-06-06", "2025-06-09", "2025-06-10"] |
| | | days = ["2025-06-03", "2025-06-04", "2025-06-05", "2025-06-06", "2025-06-09", "2025-06-10", |
| | | "2025-06-11", "2025-06-12", "2025-06-13", "2025-06-16", "2025-06-17", "2025-06-18", "2025-06-19", |
| | | "2025-06-20", "2025-06-23", "2025-06-24", "2025-06-25", "2025-06-26", "2025-06-27", "2025-06-30"] |
| | | "2025-06-20", "2025-06-23", "2025-06-24", "2025-06-25", "2025-06-26", "2025-06-27", "2025-06-30", |
| | | "2025-07-01", "2025-07-02"] |
| | | |
| | | # days = ["2025-05-23"] |
| | | # |