mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-11 09:56:18 +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)
|
if (Status == OrderBookStatus.Connecting)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
asks.Clear();
|
||||||
foreach(var ask in askList)
|
foreach(var ask in askList)
|
||||||
asks.Add(ask.Price, new OrderBookEntry(ask.Price, ask.Quantity));
|
asks.Add(ask.Price, new OrderBookEntry(ask.Price, ask.Quantity));
|
||||||
|
bids.Clear();
|
||||||
foreach (var bid in bidList)
|
foreach (var bid in bidList)
|
||||||
bids.Add(bid.Price, new OrderBookEntry(bid.Price, bid.Quantity));
|
bids.Add(bid.Price, new OrderBookEntry(bid.Price, bid.Quantity));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user