| | |
| | | if b not in current_reason_dict: |
| | | current_reason_dict[b] = [] |
| | | current_reason_dict[b].append(_code) |
| | | # (板块名称,涨停代码数量,炸板数量,涨停时间) |
| | | limit_up_reason_statistic_info = [(k, len(record_reason_dict[k]), len(record_reason_dict[k]) - len( |
| | | # (板块名称,涨停代码数量,炸板数量,涨停时间, 是否有辨识度的票) |
| | | |
| | | limit_up_reason_statistic_info = [[k, len(record_reason_dict[k]), len(record_reason_dict[k]) - len( |
| | | current_reason_dict.get(k) if k in current_reason_dict else []), |
| | | 0) for k in record_reason_dict] |
| | | 0, 0] for k in record_reason_dict] |
| | | try: |
| | | for b in limit_up_reason_statistic_info: |
| | | codes_ = BlockSpecialCodesManager().get_block_codes(b) |
| | | if not codes_: |
| | | codes_ = set() |
| | | b[4] = len(set(record_reason_dict[b])&set(codes_)) |
| | | except: |
| | | pass |
| | | limit_up_reason_statistic_info.sort(key=lambda x: x[1] - x[2]) |
| | | limit_up_reason_statistic_info.reverse() |
| | | |
| | |
| | | elif url.path == "/get_blocks_in_money_info": |
| | | # 获取板块资金流入状况 |
| | | ps_dict = dict([(k, v[0]) for k, v in parse_qs(url.query).items()]) |
| | | type_ = ps_dict.get("type") |
| | | type_ = int(ps_dict.get("type")) |
| | | try: |
| | | fdatas = [] |
| | | if type_ == 0: |