public StaticInfoView Int2Double(StaticInfo Static)
        {
            if (Static == null)
            {
                return(null);
            }

            StaticInfoView field = new StaticInfoView();

            field.LowerLimitPrice = Codec.GetLowerLimitPrice(Static);
            field.UpperLimitPrice = Codec.GetUpperLimitPrice(Static);
            field.SettlementPrice = Codec.GetSettlementPrice(Static);

            field.Symbol   = Static.Symbol;
            field.Exchange = Static.Exchange;

            return(field);
        }
Example #2
0
        public StaticInfo Double2Int(StaticInfoView Static)
        {
            if (Static == null)
            {
                return(null);
            }

            StaticInfo field = new StaticInfo();

            Codec.SetLowerLimitPrice(field, Static.LowerLimitPrice);
            Codec.SetUpperLimitPrice(field, Static.UpperLimitPrice);
            Codec.SetSettlementPrice(field, Static.SettlementPrice);

            field.Symbol   = Static.Symbol;
            field.Exchange = Static.Exchange;

            return(field);
        }