| | |
| | | limit_up_price = round(float(limit_up_price), 2) |
| | | # if trade_price_info and limit_up_price and trade_price_info[0] == limit_up_price: |
| | | # filter_limit_up_sell = True |
| | | L2LimitUpSellDataManager.add_l2_origin_data(code, origin_datas) |
| | | |
| | | datas = l2_huaxin_util.get_format_l2_datas(code, origin_datas, limit_up_price, _start_index, |
| | | filter_limit_up_sell) |
| | | L2LimitUpSellDataManager.add_l2_data(code, datas) |
| | | __start_time = round(t.time() * 1000) |
| | | if len(datas) > 0: |
| | | cls.process_add_datas(code, datas, 0, __start_time) |
| | |
| | | return False, True, f"只买想买:没在想买单和绿单", True |
| | | if not cls.__WantBuyCodesManager.is_in_cache(code): |
| | | average_rate = cls.__Buy1PriceManager.get_average_rate(code) |
| | | if average_rate and average_rate <= 0.05: |
| | | return False, True, f"均价涨幅({average_rate})小于5%", True |
| | | if average_rate : |
| | | if tool.is_ge_code(code): |
| | | if average_rate <= 0.1: |
| | | return False, True, f"均价涨幅({average_rate})小于10%", True |
| | | else: |
| | | if average_rate <= 0.05: |
| | | return False, True, f"均价涨幅({average_rate})小于5%", True |
| | | |
| | | return True, False, f"", False |
| | | |