int CTraderApi::ReqQuoteAction(const string& szId) { unordered_map<string, CUstpFtdcRtnQuoteField*>::iterator it = m_id_api_quote.find(szId); if (it == m_id_api_quote.end()) { //// <error id="QUOTE_NOT_FOUND" value="86" prompt="CTP:报价撤单找不到相应报价"/> return -100; } else { // 找到了订单 ReqQuoteAction(it->second); } return 0; }
int CTraderApi::ReqQuoteAction(const string& szId,OrderIDType* pOutput) { unordered_map<string, CThostFtdcQuoteField*>::iterator it = m_id_api_quote.find(szId); if (it == m_id_api_quote.end()) { sprintf((char*)pOutput, "%d", -100); return -100; } else { // 找到了订单 ReqQuoteAction(it->second,pOutput); } return 0; }