| | |
| | | try: |
| | | for code in codes: |
| | | # 自由流通市值>50亿,股价高于30块的不能加白名单 |
| | | limit_up_price = gpcode_manager.get_limit_up_price(code) |
| | | if float(limit_up_price) > 30: |
| | | raise Exception("股价高于30元") |
| | | # limit_up_price = gpcode_manager.get_limit_up_price(code) |
| | | # if float(limit_up_price) > 30: |
| | | # raise Exception("股价高于30元") |
| | | # zyltgb = global_util.zyltgb_map.get(code) |
| | | # if zyltgb is None: |
| | | # global_data_loader.load_zyltgb() |
| | |
| | | for d in total_datas: |
| | | if d[2] not in limit_up_reason_want_count_dict: |
| | | limit_up_reason_want_count_dict[d[2]] = 0 |
| | | limit_up_reason_want_count_dict[d[2]] += 1 |
| | | |
| | | if d[3] in want_codes: |
| | | limit_up_reason_want_count_dict[d[2]] += 1 |
| | | # (板块名称,涨停代码数量,想买单数量,涨停时间) |
| | | limit_up_reason_statistic_info = [ |
| | | (k, len(limit_up_reason_dict[k]), limit_up_reason_want_count_dict.get(k), limit_up_reason_dict[k][0][5]) for |
| | | k in |
| | |
| | | if d[2] != plate: |
| | | continue |
| | | # 代码,名称,涨停时间,是否炸板,是否想买,是否已经下过单 |
| | | codes_info.append([d[3], d[4], tool.to_time_str(int(d[5])), d[3] not in now_limit_up_codes, False, False]) |
| | | codes_info.append( |
| | | [d[3], d[4], tool.to_time_str(int(d[5])), d[3] not in now_limit_up_codes, False, False]) |
| | | codes_info.sort(key=lambda x: x[2]) |
| | | # 查询是否为想买单 |
| | | want_codes = gpcode_manager.WantBuyCodesManager.list_code() |