/// <summary>
 /// 获取所有的港股_品种_交易规则
 /// </summary>
 /// <returns></returns>
 private IList <HK_SpotTradeRules> GetAllSpotTradeRulesFromWCF()
 {
     try
     {
         using (HKTradeRulesClient client = GetClient())
             return(client.GetAllHKSpotTradeRules());
     }
     catch (Exception ex)
     {
         string errCode = "GT-8112";
         string errMsg  = "无法从管理中心获取港股交易规则列表。";
         throw new VTException(errCode, errMsg, ex);
     }
 }
 /// <summary>
 /// 获取港股交易规则
 /// </summary>
 /// <returns></returns>
 protected List <HK_SpotTradeRules> GetHKSpotTradeRules()
 {
     try
     {
         using (HKTradeRulesClient client = ManagementCenterDataAgent.Instanse.GetHKTradeRulesInstance())
         {
             //List<HK_SpotTradeRules> r = client.GetAllHKSpotTradeRules();
             return(client.GetAllHKSpotTradeRules());
         }
     }
     catch (Exception ex)
     {
         LogHelper.WriteError(GenerateInfo.CH_E006, ex);
         return(null);
     }
 }