1
0
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:
Jan Korf 2019-05-15 13:56:04 +02:00
parent cd03a718e0
commit 544864a2fd

View File

@ -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));