/// <summary>
 /// 从管理中心获取港股交易费用
 /// </summary>
 /// <returns></returns>
 private IList <HK_SpotCosts> GetAllSpotCostsFromWCF()
 {
     try
     {
         using (HKTradeRulesClient client = GetClient())
             return(client.GetAllHKSpotCosts());
     }
     catch (Exception ex)
     {
         string errCode = "GT-8105";
         string errMsg  = "无法从管理中心获取港股交易费用列表。";
         throw new VTException(errCode, errMsg, ex);
     }
 }
 /// <summary>
 /// 获取所有的港股代码
 /// </summary>
 public static void GetAllHKCommodity()
 {
     hKCommodityList.Clear();
     hKCommodityList.Clear();
     //int[] breeid = { 44 };
     //int breeid = 44;//港股品种ID
     using (HKTradeRulesClient client = GetHKTradeRulesClient())
     {
         List <HK_Commodity> item = new List <HK_Commodity>();
         item = client.GetAllHKCommodity();
         hKCommodityList.AddRange(item);
     }
     using (HKTradeRulesClient client = GetHKTradeRulesClient())
     {
         hKSpotCostsList = client.GetAllHKSpotCosts();
     }
 }