| | |
| | | # 设置收盘价 |
| | | @classmethod |
| | | def set_price_pre(cls, code, price, force=False): |
| | | codes = get_gp_list() |
| | | if code not in codes and not FirstCodeManager().is_in_first_record_cache(code) and not force: |
| | | if code in cls.__price_pre_cache and not force: |
| | | return |
| | | price = round(float(price), 2) |
| | | logger_pre_close_price.info(f"{code}-{price}") |
| | |
| | | return limit_up_price |
| | | |
| | | |
| | | def get_limit_up_price_as_num(code): |
| | | limit_up_price = get_limit_up_price(code) |
| | | if limit_up_price: |
| | | return round(float(limit_up_price), 2) |
| | | return None |
| | | |
| | | |
| | | def get_limit_up_price_cache(code): |
| | | if code in __limit_up_price_dict: |
| | | return __limit_up_price_dict[code] |