| | |
| | | if cancel_result[0]: |
| | | L2TradeDataProcessor.cancel_buy(code, f"F撤:{cancel_result[1]}") |
| | | else: |
| | | l2_log.f_cancel_debug(code,f"获取真实成交位的F撤未生效:{cancel_result[1]}") |
| | | l2_log.f_cancel_debug(code, f"获取真实成交位的F撤未生效:{cancel_result[1]}") |
| | | except Exception as e: |
| | | logger_debug.exception(e) |
| | | |
| | |
| | | |
| | | limit_up_price = gpcode_manager.get_limit_up_price(code) |
| | | |
| | | if float(limit_up_price) >= constant.MAX_CODE_PRICE: |
| | | if constant.MIN_CODE_PRICE < float(limit_up_price) < constant.MAX_CODE_PRICE: |
| | | # 满足条件的单价 |
| | | pass |
| | | else: |
| | | # HighIncreaseCodeManager().add_code(code) |
| | | return False, True, f"股价大于{constant.MAX_CODE_PRICE}块" |
| | | return False, True, f"股价大于{constant.MAX_CODE_PRICE}块/小于{constant.MIN_CODE_PRICE}块" |
| | | |
| | | # place_order_count = cls.__PlaceOrderCountManager.get_place_order_count(code) |
| | | # if place_order_count and place_order_count >= 10: |
| | |
| | | cancel_result = cls.__cancel_buy(code) |
| | | if cancel_result: |
| | | trade_result_manager.real_cancel_success(code, order_begin_pos.buy_single_index, |
| | | order_begin_pos.buy_exec_index, total_datas,from_real_cancel = True) |
| | | order_begin_pos.buy_exec_index, total_datas, |
| | | from_real_cancel=True) |
| | | l2_log.debug(code, "执行撤单结束,原因:{}", msg) |
| | | return True |
| | | |
| | |
| | | |
| | | is_at_limit_up = False |
| | | current_sell_data = cls.__L2MarketSellManager.get_current_total_sell_data(code) |
| | | if current_sell_data and current_sell_data[1] ==0: |
| | | if current_sell_data and current_sell_data[1] == 0: |
| | | # 板上放量买 |
| | | is_at_limit_up = True |
| | | |
| | | |
| | | threshold_money = threshold_money_origin |
| | | # 目标手数 |