/// <summary>
        /// 根据枚举类型,获取交易所
        /// </summary>
        /// <param name="exchange"></param>
        /// <returns></returns>
        public Exchange GetExchange(EnumExchange exchange)
        {
            switch (exchange)
            {
            case EnumExchange.中金所: return(GetExchange("CFFEX"));

            case EnumExchange.大商所: return(GetExchange("DCE"));

            case EnumExchange.期所: return(GetExchange("SHFE"));

            case EnumExchange.郑商所: return(GetExchange("CZCE"));

            case EnumExchange.证所: return(GetExchange("SH"));

            case EnumExchange.深交所: return(GetExchange("SZ"));

            default: throw new Exception("非法的交易所代码:" + exchange.ToString());
            }
        }
        private EnumMarket GetMarketByExchangeId(EnumExchange enumExchange)
        {
            switch (enumExchange)
            {
            case EnumExchange.大商所:
            case EnumExchange.期所:
            case EnumExchange.郑商所:
            case EnumExchange.中金所:
                return(EnumMarket.期货);

            case EnumExchange.证所:
            case EnumExchange.深交所:
                return(EnumMarket.股票);

            case EnumExchange.新交所:
                return(EnumMarket.外盘);

            default:
                return(EnumMarket.期货);
            }
        }