public List <HKTraderFindService.HK_HistoryTradeInfo> QueryHKHisotryTrade(string entrustNumber, DateTime?startTime, DateTime?endTime, ref string strMessage) { if (!IsServiceOk) { return(new List <HKTraderFindService.HK_HistoryTradeInfo>()); } List <HKTraderFindService.HK_HistoryTradeInfo> tets = new List <HKTraderFindService.HK_HistoryTradeInfo>(); int icount; var secfe = new HKTraderFindService.HKTradeConditionFindEntity(); if (!string.IsNullOrEmpty(entrustNumber)) { secfe.EntrustNumber = entrustNumber; } if (startTime.HasValue && endTime.HasValue) { secfe.StartTime = startTime.Value; secfe.EndTime = endTime.Value; } tets = hkTraderFindClient.HKHistoryTradeFind(out icount, out strMessage, hkAccount, "", 0, int.MaxValue, secfe); return(tets); }
public List <HKTraderFindService.HK_TodayTradeInfo> QueryHKTodayTrade(string capitalAccount, ref string strMessage) { if (!IsServiceOk) { return(new List <HKTraderFindService.HK_TodayTradeInfo>()); } int icount; HKTraderFindService.HKTradeConditionFindEntity filter = new HKTraderFindService.HKTradeConditionFindEntity(); if (!string.IsNullOrEmpty(CurrentQueryValue.QueryHKTradeNO)) { filter.EntrustNumber = CurrentQueryValue.QueryHKTradeNO; } else { filter = null; } var trades = hkTraderFindClient.HKTodayTradeFindByCapitalAccount(out icount, out strMessage, capitalAccount, "", 0, int.MaxValue, filter); return(trades); }