void OnRspUserLogin(ThostFtdcRspUserLoginField pRspUserLogin, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
{
DebugPrintFunc(new StackTrace());
if (bIsLast && !IsErrorRspInfo(pRspInfo))
{
// 保存会话参数
FRONT_ID = pRspUserLogin.FrontID;
SESSION_ID = pRspUserLogin.SessionID;
int iNextOrderRef = 0;
if (!string.IsNullOrEmpty(pRspUserLogin.MaxOrderRef))
iNextOrderRef = Convert.ToInt32(pRspUserLogin.MaxOrderRef);
iNextOrderRef++;
ORDER_REF = Convert.ToString(iNextOrderRef);
//获取当前交易日
Console.WriteLine("--->>> 获取当前交易日 = " + api.GetTradingDay());
//请求查询结算信息确认
ReqQrySettlementInfoConfirm();
}
}