Exemple #1
0
        public double GetPreClosePrice(StaticInfo Static)
        {
            if (Static == null)
            {
                return(0);
            }

            return(TickToPrice(Static.PreClosePrice));
        }
Exemple #2
0
        public double GetPreSettlementPrice(StaticInfo Static)
        {
            if (Static == null)
            {
                return(0);
            }

            return(TickToPrice(Static.PreSettlementPrice) / _config.SettlementPriceMultiplier);
        }
Exemple #3
0
        public double GetUpperLimitPrice(StaticInfo Static)
        {
            if (Static == null)
            {
                return(0);
            }

            return(TickToPrice(Static.UpperLimitPrice));
        }
Exemple #4
0
        public long GetPreOpenInterest(StaticInfo Static)
        {
            if (Static == null)
            {
                return(0);
            }

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

            var 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);
        }
        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);
        }
        public StaticInfoView Int2Double(StaticInfo Static)
        {
            if (Static == null)
                return null;

            var 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;

            field.PreClosePrice = Codec.GetPreClosePrice(Static);
            field.PreSettlementPrice = Codec.GetPreSettlementPrice(Static);
            field.PreOpenInterest = Codec.GetPreOpenInterest(Static);

            return field;
        }
        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;

            Codec.SetPreClosePrice(field, Static.PreClosePrice);
            Codec.SetPreSettlementPrice(field, Static.PreSettlementPrice);
            Codec.SetPreOpenInterest(field, Static.PreOpenInterest);

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

            var 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;

            Codec.SetPreClosePrice(field, Static.PreClosePrice);
            Codec.SetPreSettlementPrice(field, Static.PreSettlementPrice);
            Codec.SetPreOpenInterest(field, Static.PreOpenInterest);

            return(field);
        }
Exemple #10
0
        public long GetPreOpenInterest(StaticInfo Static)
        {
            if (Static == null)
                return 0;

            return Static.PreOpenInterest;
        }
Exemple #11
0
 public void SetPreOpenInterest(StaticInfo Static, long val)
 {
     Static.PreOpenInterest = val;
 }
Exemple #12
0
 public void SetUpperLimitPrice(StaticInfo Static, double price)
 {
     Static.UpperLimitPrice = PriceToTick(price);
 }
Exemple #13
0
 public void SetPreSettlementPrice(StaticInfo Static, double price)
 {
     Static.PreSettlementPrice = PriceToTick(price * _config.SettlementPriceMultiplier);
 }
Exemple #14
0
        public double GetUpperLimitPrice(StaticInfo Static)
        {
            if (Static == null)
                return 0;

            return TickToPrice(Static.UpperLimitPrice);
        }
Exemple #15
0
 public void SetPreClosePrice(StaticInfo Static, double price)
 {
     Static.PreClosePrice = PriceToTick(price);
 }
Exemple #16
0
 public void SetPreClosePrice(StaticInfo Static, double price)
 {
     Static.PreClosePrice = PriceToTick(price);
 }
Exemple #17
0
 public void SetUpperLimitPrice(StaticInfo Static, double price)
 {
     Static.UpperLimitPrice = PriceToTick(price);
 }
Exemple #18
0
 public void SetPreOpenInterest(StaticInfo Static, long val)
 {
     Static.PreOpenInterest = val;
 }
Exemple #19
0
        public double GetPreSettlementPrice(StaticInfo Static)
        {
            if (Static == null)
                return 0;

            return (TickToPrice(Static.PreSettlementPrice) / _config.SettlementPriceMultiplier);
        }
Exemple #20
0
 public void SetPreSettlementPrice(StaticInfo Static, double price)
 {
     Static.PreSettlementPrice = PriceToTick(price * _config.SettlementPriceMultiplier);
 }
Exemple #21
0
        public double GetPreClosePrice(StaticInfo Static)
        {
            if (Static == null)
                return 0;

            return TickToPrice(Static.PreClosePrice);
        }