| | |
| | | # 设置历史K线 |
| | | def set_record_datas(code, limit_up_price, record_datas): |
| | | k_format = get_k_format(float(limit_up_price), record_datas) |
| | | CodeNatureRecordManager.save_k_format(code, k_format) |
| | | CodeNatureRecordManager().save_k_format(code, k_format) |
| | | natures = get_nature(record_datas) |
| | | CodeNatureRecordManager.save_nature(code, natures) |
| | | CodeNatureRecordManager().save_nature(code, natures) |
| | | |
| | | |
| | | # 获取K线形态 |
| | |
| | | if bidding_money and bidding_money >= 5000: |
| | | bidding = True |
| | | |
| | | k_form = code_nature_analyse.CodeNatureRecordManager.get_k_format_cache(code) |
| | | k_form = code_nature_analyse.CodeNatureRecordManager().get_k_format_cache(code) |
| | | if k_form is None: |
| | | k_form = [(True, ''), (False, ''), (False, ''), (False, ''), (False, ''), (False, ''), (True, ''), (1, 1)] |
| | | today_volume = code_volumn_manager.get_today_volumn(code) |
| | |
| | | |
| | | source_datas.append(k_form) |
| | | |
| | | code_nature = code_nature_analyse.CodeNatureRecordManager.get_nature_cache(code) |
| | | code_nature = code_nature_analyse.CodeNatureRecordManager().get_nature_cache(code) |
| | | source_datas.append(code_nature) |
| | | |
| | | hot_block = block_info.get_info(code) |