| | |
| | | from third_data.custom_block_in_money_manager import CodeInMoneyManager, BlockInMoneyRankManager |
| | | from third_data.history_k_data_manager import HistoryKDataManager |
| | | from third_data.history_k_data_util import HistoryKDatasUtils |
| | | from trade.buy_radical.block_special_codes_manager import BlockSpecialCodesManager |
| | | from utils import tool, middle_api_protocol, global_util |
| | | import urllib.parse as urlparse |
| | | from urllib.parse import parse_qs |
| | |
| | | volume = zylt_volume_map.get(code) |
| | | # 今日涨停价要突破昨日最高价 |
| | | k_bars = HistoryKDataManager().get_history_bars(code, last_trade_day) |
| | | if k_bars and 30e8 <= k_bars[0]["close"] * volume * tool.get_limit_up_rate(code) <= 300e8: |
| | | # 自由流通市值在30亿-300亿以上 |
| | | if k_bars and 10e8 <= k_bars[0]["close"] * volume * tool.get_limit_up_rate(code) <= 300e8: |
| | | # 自由流通市值在10亿-300亿以上 |
| | | limit_up_price = round(tool.get_limit_up_rate(code) * k_bars[0]["close"], 2) |
| | | if limit_up_price > k_bars[0]["high"]: |
| | | if limit_up_price > k_bars[0]["high"] or True: |
| | | # 今日涨停价要突破昨日最高价 |
| | | codes.add(code) |
| | | # 获取辨识度的票 |
| | | special_codes = BlockSpecialCodesManager().get_origin_code_blocks_dict().keys() |
| | | if special_codes: |
| | | codes |= set(special_codes) |
| | | return codes |
| | | except Exception as e: |
| | | logger_system.exception(e) |