private IList <XH_SpotCosts> GetAllSpotCostsFromWCF()
 {
     try
     {
         using (SpotTradeRulesClient client = GetClient())
             return(client.GetAllSpotCosts());
     }
     catch (Exception ex)
     {
         string errCode = "GT-8105";
         string errMsg  = "无法从管理中心获取现货交易费用列表。";
         throw new VTException(errCode, errMsg, ex);
     }
 }
        /// <summary>
        /// 获取所有的现货代码
        /// </summary>
        public static void GetAllCM_Commodity()
        {
            list.Clear();
            spotList.Clear();
            int[] breeid = { 7, 8, 21, 22 };
            using (CommonParaClient client = GetCommonParaClient())
            {
                foreach (var k in breeid)
                {
                    List <CM_Commodity> item = new List <CM_Commodity>();
                    item = client.GetCommodityByBreedClassID(k);

                    list.AddRange(item);
                }
            }
            using (SpotTradeRulesClient client = GetSpotTradeRulesClient())
            {
                spotList = client.GetAllSpotCosts();
            }
        }