@@ -111,7 +111,9 @@ public LevelOneMarketData(Symbol symbol)
111111 /// <param name="bidSize">The size available at the best bid.</param>
112112 /// <param name="askPrice">The best ask price.</param>
113113 /// <param name="askSize">The size available at the best ask.</param>
114- public void UpdateQuote ( DateTime ? quoteDateTimeUtc , decimal ? bidPrice , decimal ? bidSize , decimal ? askPrice , decimal ? askSize )
114+ /// <param name="saleCondition">The sale condition string.</param>
115+ /// <param name="exchange">The exchange identifier.</param>
116+ public void UpdateQuote ( DateTime ? quoteDateTimeUtc , decimal ? bidPrice , decimal ? bidSize , decimal ? askPrice , decimal ? askSize , string saleCondition , string exchange )
115117 {
116118 if ( ! IsValidTimestamp ( quoteDateTimeUtc ) )
117119 {
@@ -141,12 +143,26 @@ public void UpdateQuote(DateTime? quoteDateTimeUtc, decimal? bidPrice, decimal?
141143
142144 if ( isBidUpdated || isAskUpdated )
143145 {
144- var lastQuoteTick = new Tick ( quoteDateTimeUtc . Value . ConvertFromUtc ( SymbolDateTimeZone ) , Symbol , BestBidSize , BestBidPrice , BestAskSize , BestAskPrice ) ;
146+ var lastQuoteTick = new Tick ( quoteDateTimeUtc . Value . ConvertFromUtc ( SymbolDateTimeZone ) , Symbol , saleCondition , exchange . GetPrimaryExchange ( Symbol . SecurityType ) , BestBidSize , BestBidPrice , BestAskSize , BestAskPrice ) ;
145147
146148 BaseDataReceived ? . Invoke ( this , new ( lastQuoteTick ) ) ;
147149 }
148150 }
149151
152+ /// <summary>
153+ /// Updates the best bid and ask prices and sizes.
154+ /// Constructs and publishes a quote <see cref="Tick"/> to the <see cref="IDataAggregator"/>.
155+ /// </summary>
156+ /// <param name="quoteDateTimeUtc">The UTC timestamp when the quote was received.</param>
157+ /// <param name="bidPrice">The best bid price.</param>
158+ /// <param name="bidSize">The size available at the best bid.</param>
159+ /// <param name="askPrice">The best ask price.</param>
160+ /// <param name="askSize">The size available at the best ask.</param>
161+ public void UpdateQuote ( DateTime ? quoteDateTimeUtc , decimal ? bidPrice , decimal ? bidSize , decimal ? askPrice , decimal ? askSize )
162+ {
163+ UpdateQuote ( quoteDateTimeUtc , bidPrice , bidSize , askPrice , askSize , string . Empty , string . Empty ) ;
164+ }
165+
150166 /// <summary>
151167 /// Updates the last trade price and size.
152168 /// Constructs and publishes a trade <see cref="Tick"/> to the <see cref="Data.IDataAggregator"/>.
@@ -175,7 +191,7 @@ public void UpdateLastTrade(DateTime? tradeDateTimeUtc, decimal? lastQuantity, d
175191 tradeDateTimeUtc . Value . ConvertFromUtc ( SymbolDateTimeZone ) ,
176192 Symbol ,
177193 saleCondition ,
178- exchange ,
194+ exchange . GetPrimaryExchange ( Symbol . SecurityType ) ,
179195 LastTradeSize ,
180196 LastTradePrice ) ;
181197
0 commit comments