-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Query the initial book instead of waiting for the snapshot to set the… (
#68) * Query the initial book instead of waiting for the snapshot to set the order book * Add diffUpdates as optional argument to book subscription
- Loading branch information
Showing
4 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using CoinEx.Net.SymbolOrderBooks; | ||
using CryptoExchange.Net.Objects; | ||
using NUnit.Framework; | ||
using System.Threading.Tasks; | ||
|
||
namespace CoinEx.Net.UnitTests | ||
{ | ||
[TestFixture] | ||
public class OrderBookTests | ||
{ | ||
[TestCase] | ||
public async Task StartOrderBook_Should_BeSynced() | ||
{ | ||
// arrange | ||
using var book = new CoinExSpotSymbolOrderBook("BTCUSDT"); | ||
|
||
// act | ||
await book.StartAsync(); | ||
|
||
// assert | ||
Assert.That(book.Status == OrderBookStatus.Synced); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters