CSTraderTest.testTraderApi.OnRspQryInstrument C# (CSharp) Метод

OnRspQryInstrument() приватный Метод

请求查询合约响应
private OnRspQryInstrument ( ThostFtdcInstrumentField pInstrument, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast ) : void
pInstrument ThostFtdcInstrumentField
pRspInfo ThostFtdcRspInfoField
nRequestID int
bIsLast bool
Результат void
        void OnRspQryInstrument(ThostFtdcInstrumentField pInstrument, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
        {
            DebugPrintFunc(new StackTrace());
            Console.WriteLine("密钥生成日期:{0},交割月:{1},交割年份:{2},结束交割日:{3},交易所代码:{4}",
                pInstrument.CreateDate,
                pInstrument.DeliveryMonth,
                pInstrument.DeliveryYear,
                pInstrument.EndDelivDate,
                pInstrument.ExchangeID);

            if (bIsLast && !IsErrorRspInfo(pRspInfo))
            {
                //请求查询资金账户
                ReqQryTradingAccount();
            }
        }
testTraderApi