Esempio n. 1
0
///报单通知
void CTraderSpi::OnRtnOrder(CThostFtdcOrderField *pOrder)
{
	std::cout << "--->>> " << "OnRtnOrder"  << std::endl;
	if (IsMyOrder(pOrder))
	{
		if (IsTradingOrder(pOrder))
			ReqOrderAction(pOrder);
		else if (pOrder->OrderStatus == THOST_FTDC_OST_Canceled)
			std::cout << "--->>> 撤单成功" << std::endl;
	}
}
Esempio n. 2
0
///报单通知,私有流
void CROHONTraderSpi::OnRtnOrder(CRohonOrderField *pOrder)
{
    if (!IsMyOrder(pOrder)) return;

    m_pDealer->OnReturnOrder(pOrder);
}