| | |
| | | @param code: |
| | | @return: |
| | | """ |
| | | if code.find("60") == 0: |
| | | # 上证不激进下单 |
| | | return None |
| | | |
| | | current_total_sell_data = L2MarketSellManager().get_current_total_sell_data(code) |
| | | place_order_count = trade_data_manager.PlaceOrderCountManager().get_place_order_count(code) |
| | | # 只有初次下单 + 总抛压大于500w能激进下单 |
| | | if place_order_count > 0 or current_total_sell_data[1] < 500 * 10000: |
| | | return None |
| | | |
| | | if global_util.zyltgb_map.get(code) > 50 * 100000000: |
| | | # 50亿以上的无法激进下单 |
| | | return None |
| | |
| | | if abs(float(limit_up_price) - float(trade_price)) < 0.001: |
| | | # 获取最近的非涨停价成交时间 |
| | | not_limit_up_info = current_price_process_manager.get_trade_not_limit_up_info(code) |
| | | if not not_limit_up_info or tool.trade_time_sub( total_data[-1]['val']['time'], not_limit_up_info[1])>10: |
| | | if not not_limit_up_info or tool.trade_time_sub(total_data[-1]['val']['time'], |
| | | not_limit_up_info[1]) > 10: |
| | | # 非涨停价成交10s后才有可能判断为板上放量 |
| | | sell_data = cls.__L2MarketSellManager.get_current_total_sell_data(code) |
| | | if sell_data and sell_data[1] <= 0: |
| | |
| | | # 深证非板上放量 |
| | | max_space_time_ms = 1 * 1000 |
| | | |
| | | # 上证的间隔时间为1s |
| | | if code.find("60") == 0: |
| | | max_space_time_ms = 1 * 1000 |
| | | |
| | | # 不下单的信息 |
| | | not_buy_msg = "" |
| | | max_buy_num_set = set(max_num_set) |