def __OnErrOrder(self,
pInputOrder=CThostFtdcInputOrderField,
pRspInfo=CThostFtdcRspInfoField):
""""""
id = '{0}|{1}|{2}'.format(self.SessionID, '0',
pInputOrder.getOrderRef())
of = self.DicOrderField.get(id)
info = InfoField()
info.ErrorID = pRspInfo.getErrorID()
info.ErrorMsg = pRspInfo.getErrorMsg()
if of and of.IsLocal:
of.Status = OrderStatus.Error
of.StatusMsg = '{0}:{1}'.format(pRspInfo.getErrorID(),
pRspInfo.getErrorMsg())
_thread.start_new_thread(self.OnRtnErrOrder, (of, info))
评论列表
文章目录