public LiveQuoteEventArgs(Security security, LiveQuoteType quoteType, DateTime quoteTime, decimal quotePrice, long quoteVolume) { this.security = security ?? throw new ArgumentNullException(nameof(security)); QuoteType = quoteType; QuoteTime = quoteTime; QuotePrice = quotePrice; QuoteVolume = quoteVolume; }
protected void OnLiveQuoteReceived(Security security, LiveQuoteType quoteType, DateTime quoteTime, decimal quotePrice, long quoteVolume) { LiveQuoteReceived?.Invoke(this, new LiveQuoteEventArgs( security, quoteType, quoteTime, quotePrice, quoteVolume)); }