Esempio n. 1
0
 public Option(OptionPair rootPair, string optionNumber, string optionCode)
     : base(optionNumber)
 {
     if (rootPair != null)
     {
         RootPair     = rootPair;
         SecurityCode = rootPair.SecurityCode;
     }
     OptionCode = optionCode;
 }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            OptionPair other  = (OptionPair)obj;
            bool       equals = SecurityCode.IgnoreCaseEquals(other.SecurityCode) && StrikePrice.AlmostEqual(other.StrikePrice) &&
                                Expiry == other.Expiry && PremiumMultiplier == other.PremiumMultiplier;

            return(equals);
        }