mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-10 09:26:22 +00:00
Fix for resyncing order book
This commit is contained in:
parent
cd03a718e0
commit
544864a2fd
@ -196,8 +196,10 @@ namespace CryptoExchange.Net.OrderBook
|
||||
if (Status == OrderBookStatus.Connecting)
|
||||
return;
|
||||
|
||||
asks.Clear();
|
||||
foreach(var ask in askList)
|
||||
asks.Add(ask.Price, new OrderBookEntry(ask.Price, ask.Quantity));
|
||||
bids.Clear();
|
||||
foreach (var bid in bidList)
|
||||
bids.Add(bid.Price, new OrderBookEntry(bid.Price, bid.Quantity));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user