/// <summary> /// Initializes a new instance of the <see cref="Option"/> class. /// </summary> /// <param name="contract">The contract.</param> /// <param name="notional">The notional.</param> public Option(OptionContract contract, double notional) { Contract = contract; Notional = notional; }
/// <summary> /// Equalses the specified other. /// </summary> /// <param name="other">The other.</param> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns> private bool Equals(OptionContract other) { return(OptionType == other.OptionType && BaseNotional.Equals(other.BaseNotional) && Strike.Equals(other.Strike) && Maturity.Equals(other.Maturity)); }