// private decimal _bestBid; // private decimal _bestAsk; public InstrumentInfo(Instrument instrument) { _instrumentId = instrument.Id; }
///<summary> /// Determines if this instrument is the same as another one. ///</summary> ///<param name="other">An instrument to compare this instance to</param> ///<returns>true if the given instrument is the same as this instrument</returns> public bool Equals(Instrument other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return other._id == _id && Equals(other._name, _name) && Equals(other._underlying, _underlying) && Equals(other._calendar, _calendar) && Equals(other._risk, _risk) && Equals(other._orderBook, _orderBook) && Equals(other._contract, _contract) && Equals(other._commercial, _commercial); }