| | |
| | | if trade_gui is not None: |
| | | trade_gui.THSBuyWinManagerNew.cancel_distribute_win_for_code(code) |
| | | # 交易成功时间过去3s之后,且当前委托列表里面还有该代码数据就再次执行撤单 |
| | | # 新版下单不处理 |
| | | if not constant.IS_NEW_VERSION_PLACE_ORDER: |
| | | if tool.trade_time_sub(tool.get_now_time_str(), _time) > 3: |
| | | # 获取到当前是否委托 |
| | | for dd in latest_trade_delegate_data: |
| | |
| | | latest_trade_delegate_data.extend(datas) |
| | | codes = [] |
| | | for data in datas: |
| | | |
| | | code = data["code"] |
| | | if code is not None: |
| | | codes.append(code) |
| | |
| | | RadicalBuyDealCodesManager().add_deal_code(code) |
| | | # 取s消所有的挂单 |
| | | if constant.API_TRADE_ENABLE: |
| | | if not constant.IS_NEW_VERSION_PLACE_ORDER: |
| | | # 新版本拆单下单不撤单 |
| | | if constant.TRADE_WAY == constant.TRADE_WAY_JUEJIN: |
| | | trade_juejin.cancel_order(code) |
| | | elif constant.TRADE_WAY == constant.TRADE_WAY_HUAXIN: |