Skip to content

Commit

Permalink
Updated version
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Aug 12, 2020
1 parent 99a770b commit 0fd811a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 296 deletions.
4 changes: 2 additions & 2 deletions CryptoExchange.Net/CryptoExchange.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<PackageId>CryptoExchange.Net</PackageId>
<Authors>JKorf</Authors>
<Description>A base package for implementing cryptocurrency exchange API's</Description>
<PackageVersion>3.0.11</PackageVersion>
<PackageVersion>3.0.12</PackageVersion>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageProjectUrl>https://github.com/JKorf/CryptoExchange.Net</PackageProjectUrl>
<NeutralLanguage>en</NeutralLanguage>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageReleaseNotes>3.0.11 - Added support for checksum in SymbolOrderBook</PackageReleaseNotes>
<PackageReleaseNotes>3.0.12 - Named parameters on SymbolOrderBook events</PackageReleaseNotes>
<Nullable>enable</Nullable>
<LangVersion>8.0</LangVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down
291 changes: 1 addition & 290 deletions CryptoExchange.Net/CryptoExchange.Net.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion CryptoExchange.Net/Objects/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public class OrderBookOptions : BaseOptions
/// <param name="sequencesAreConsecutive">Whether each update should have a consecutive id number. Used to identify and reconnect when numbers are skipped.</param>
/// <param name="strictLevels">Whether or not a level should be removed from the book when it's pushed out of scope of the limit. For example with a book of limit 10,
/// when a new bid is added which makes the total amount of bids 11, should the last bid entry be removed</param>
/// <param name="levels">Amount of levels for this order book</param>
public OrderBookOptions(string name, bool sequencesAreConsecutive, bool strictLevels)
{
OrderBookName = name;
Expand Down
6 changes: 3 additions & 3 deletions CryptoExchange.Net/OrderBook/SymbolOrderBook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public abstract class SymbolOrderBook : ISymbolOrderBook, IDisposable
private readonly bool sequencesAreConsecutive;
private readonly bool strictLevels;

private Task _processTask;
private Task? _processTask;
private AutoResetEvent _queueEvent;
private ConcurrentQueue<object> _processQueue;

Expand Down Expand Up @@ -146,7 +146,7 @@ private class EmptySymbolOrderBookEntry : ISymbolOrderBookEntry
public decimal Price { get { return 0m; } set {; } }
}

private static ISymbolOrderBookEntry emptySymbolOrderBookEntry = new EmptySymbolOrderBookEntry();
private static readonly ISymbolOrderBookEntry emptySymbolOrderBookEntry = new EmptySymbolOrderBookEntry();

/// <summary>
/// The best bid currently in the order book
Expand Down Expand Up @@ -284,7 +284,7 @@ public async Task StopAsync()
log.Write(LogVerbosity.Debug, $"{Id} order book {Symbol} stopping");
Status = OrderBookStatus.Disconnected;
_queueEvent.Set();
_processTask.Wait();
_processTask?.Wait();
if(subscription != null)
await subscription.Close().ConfigureAwait(false);
}
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ The order book will automatically reconnect when the connection is lost and resy
To stop synchronizing an order book use the `Stop` method.

## Release notes
* Version 3.0.12 - 12 Aug 2020
* Named parameters on SymbolOrderBook events

* Version 3.0.11 - 20 Jun 2020
* Added support for checksum in SymbolOrderBook

Expand Down

0 comments on commit 0fd811a

Please sign in to comment.