| | |
| | | time.sleep(delay_s) |
| | | new_place_order_index = cls.order_success(order_) |
| | | if new_place_order_index: |
| | | buy_single_index, buy_exec_index, compute_index, num, count, max_num_set, volume_rate = TradePointManager().get_buy_compute_start_data_cache( |
| | | order_begin_pos = TradePointManager().get_buy_compute_start_data_cache( |
| | | order.code) |
| | | cancel_buy_strategy.set_real_place_position(order.code, |
| | | new_place_order_index, |
| | | buy_single_index) |
| | | order_begin_pos.buy_single_index) |
| | | trade_record_log_util.add_real_place_order_position_log(order.code, |
| | | new_place_order_index, |
| | | buy_single_index) |
| | | order_begin_pos.buy_single_index) |
| | | return new_place_order_index |
| | | |
| | | # 只处理买入单 |