diff --git a/CryptoExchange.Net/CryptoExchange.Net.xml b/CryptoExchange.Net/CryptoExchange.Net.xml index b225bc8..b6b143d 100644 --- a/CryptoExchange.Net/CryptoExchange.Net.xml +++ b/CryptoExchange.Net/CryptoExchange.Net.xml @@ -1662,41 +1662,6 @@ - - - Buffer entry for order book - - - - - List of asks - - - - - List of bids - - - - - Buffer entry with a single update id per update - - - - - First update id - - - - - List of asks - - - - - List of bids - - Buffer entry with a first and last update id @@ -2944,9 +2909,7 @@ - - -System.Diagnostics.CodeAnalysis.AllowNullAttribute"> + Specifies that is allowed as an input even if the corresponding type disallows it. diff --git a/CryptoExchange.Net/OrderBook/ProcessBufferEntry.cs b/CryptoExchange.Net/OrderBook/ProcessBufferEntry.cs index 3cf64bc..1e7c919 100644 --- a/CryptoExchange.Net/OrderBook/ProcessBufferEntry.cs +++ b/CryptoExchange.Net/OrderBook/ProcessBufferEntry.cs @@ -3,40 +3,6 @@ using System.Collections.Generic; namespace CryptoExchange.Net.OrderBook { - /// - /// Buffer entry for order book - /// - public class ProcessBufferEntry - { - /// - /// List of asks - /// - public IEnumerable Asks { get; set; } = new List(); - /// - /// List of bids - /// - public IEnumerable Bids { get; set; } = new List(); - } - - /// - /// Buffer entry with a single update id per update - /// - public class ProcessBufferSingleSequenceEntry - { - /// - /// First update id - /// - public long UpdateId { get; set; } - /// - /// List of asks - /// - public IEnumerable Asks { get; set; } = new List(); - /// - /// List of bids - /// - public IEnumerable Bids { get; set; } = new List(); - } - /// /// Buffer entry with a first and last update id /// diff --git a/CryptoExchange.Net/OrderBook/SymbolOrderBook.cs b/CryptoExchange.Net/OrderBook/SymbolOrderBook.cs index 24adc47..5b973fe 100644 --- a/CryptoExchange.Net/OrderBook/SymbolOrderBook.cs +++ b/CryptoExchange.Net/OrderBook/SymbolOrderBook.cs @@ -22,7 +22,6 @@ namespace CryptoExchange.Net.OrderBook /// The process buffer, used while syncing /// protected readonly List processBuffer; - private readonly object bookLock = new object(); /// /// The ask list /// @@ -30,8 +29,10 @@ namespace CryptoExchange.Net.OrderBook /// /// The bid list /// - protected SortedList bids; + + private readonly object bookLock = new object(); + private OrderBookStatus status; private UpdateSubscription? subscription; private readonly bool sequencesAreConsecutive;