Esempio n. 1
0
        public double GetPreClosePrice(StaticInfo Static)
        {
            if (Static == null)
            {
                return(0);
            }

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

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

            return(TickToPrice(Static.UpperLimitPrice));
        }
Esempio n. 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;
        }
Esempio n. 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);
        }
Esempio n. 10
0
        public long GetPreOpenInterest(StaticInfo Static)
        {
            if (Static == null)
                return 0;

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

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

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

            return TickToPrice(Static.PreClosePrice);
        }