mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-07-25 18:57:07 +00:00
merge sync and updates with default request id
This commit is contained in:
commit
3e3bf5329a
@ -6,12 +6,12 @@
|
|||||||
<PackageId>CryptoExchange.Net</PackageId>
|
<PackageId>CryptoExchange.Net</PackageId>
|
||||||
<Authors>JKorf</Authors>
|
<Authors>JKorf</Authors>
|
||||||
<Description>A base package for implementing cryptocurrency exchange API's</Description>
|
<Description>A base package for implementing cryptocurrency exchange API's</Description>
|
||||||
<PackageVersion>3.0.11</PackageVersion>
|
<PackageVersion>3.0.12</PackageVersion>
|
||||||
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
|
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
|
||||||
<PackageProjectUrl>https://github.com/JKorf/CryptoExchange.Net</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/JKorf/CryptoExchange.Net</PackageProjectUrl>
|
||||||
<NeutralLanguage>en</NeutralLanguage>
|
<NeutralLanguage>en</NeutralLanguage>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<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>
|
<Nullable>enable</Nullable>
|
||||||
<LangVersion>8.0</LangVersion>
|
<LangVersion>8.0</LangVersion>
|
||||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -56,7 +56,6 @@ namespace CryptoExchange.Net.Objects
|
|||||||
/// <param name="sequencesAreConsecutive">Whether each update should have a consecutive id number. Used to identify and reconnect when numbers are skipped.</param>
|
/// <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,
|
/// <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>
|
/// 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)
|
public OrderBookOptions(string name, bool sequencesAreConsecutive, bool strictLevels)
|
||||||
{
|
{
|
||||||
OrderBookName = name;
|
OrderBookName = name;
|
||||||
|
@ -38,7 +38,7 @@ namespace CryptoExchange.Net.OrderBook
|
|||||||
private readonly bool sequencesAreConsecutive;
|
private readonly bool sequencesAreConsecutive;
|
||||||
private readonly bool strictLevels;
|
private readonly bool strictLevels;
|
||||||
|
|
||||||
private Task _processTask;
|
private Task? _processTask;
|
||||||
private AutoResetEvent _queueEvent;
|
private AutoResetEvent _queueEvent;
|
||||||
private ConcurrentQueue<object> _processQueue;
|
private ConcurrentQueue<object> _processQueue;
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ namespace CryptoExchange.Net.OrderBook
|
|||||||
public decimal Price { get { return 0m; } set {; } }
|
public decimal Price { get { return 0m; } set {; } }
|
||||||
}
|
}
|
||||||
|
|
||||||
private static ISymbolOrderBookEntry emptySymbolOrderBookEntry = new EmptySymbolOrderBookEntry();
|
private static readonly ISymbolOrderBookEntry emptySymbolOrderBookEntry = new EmptySymbolOrderBookEntry();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The best bid currently in the order book
|
/// The best bid currently in the order book
|
||||||
@ -284,7 +284,7 @@ namespace CryptoExchange.Net.OrderBook
|
|||||||
log.Write(LogVerbosity.Debug, $"{Id} order book {Symbol} stopping");
|
log.Write(LogVerbosity.Debug, $"{Id} order book {Symbol} stopping");
|
||||||
Status = OrderBookStatus.Disconnected;
|
Status = OrderBookStatus.Disconnected;
|
||||||
_queueEvent.Set();
|
_queueEvent.Set();
|
||||||
_processTask.Wait();
|
_processTask?.Wait();
|
||||||
if(subscription != null)
|
if(subscription != null)
|
||||||
await subscription.Close().ConfigureAwait(false);
|
await subscription.Close().ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
@ -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.
|
To stop synchronizing an order book use the `Stop` method.
|
||||||
|
|
||||||
## Release notes
|
## Release notes
|
||||||
|
* Version 3.0.12 - 12 Aug 2020
|
||||||
|
* Named parameters on SymbolOrderBook events
|
||||||
|
|
||||||
* Version 3.0.11 - 20 Jun 2020
|
* Version 3.0.11 - 20 Jun 2020
|
||||||
* Added support for checksum in SymbolOrderBook
|
* Added support for checksum in SymbolOrderBook
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user