コード例 #1
0
        public ConfigInfoView Int2Double(ConfigInfo config)
        {
            if (config == null)
                return null;

            var field = new ConfigInfoView();

            field.Version = config.Version;
            field.TickSize = config.TickSize;
            field.TickSizeMultiplier = config.TickSizeMultiplier;
            field.SettlementPriceMultiplier = config.SettlementPriceMultiplier;
            field.AveragePriceMultiplier = config.AveragePriceMultiplier;
            field.ContractMultiplier = config.ContractMultiplier;
            field.Time_ssf_Diff = config.Time_ssf_Diff;
            field.MarketDepth = config.MarketDepth;
            field.MarketType = config.MarketType;
            field.Volume_Total_Or_Increment = config.Volume_Total_Or_Increment;
            field.Turnover_Total_Or_Increment = config.Turnover_Total_Or_Increment;

            return field;
        }
コード例 #2
0
        public ConfigInfoView Int2Double(ConfigInfo config)
        {
            if (config == null)
            {
                return(null);
            }

            var field = new ConfigInfoView();

            field.Version                     = config.Version;
            field.TickSize                    = config.TickSize;
            field.TickSizeMultiplier          = config.TickSizeMultiplier;
            field.SettlementPriceMultiplier   = config.SettlementPriceMultiplier;
            field.AveragePriceMultiplier      = config.AveragePriceMultiplier;
            field.ContractMultiplier          = config.ContractMultiplier;
            field.Time_ssf_Diff               = config.Time_ssf_Diff;
            field.MarketDepth                 = config.MarketDepth;
            field.MarketType                  = config.MarketType;
            field.Volume_Total_Or_Increment   = config.Volume_Total_Or_Increment;
            field.Turnover_Total_Or_Increment = config.Turnover_Total_Or_Increment;

            return(field);
        }