1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2026-04-13 00:22:22 +00:00

Compare commits

...

3 Commits

5 changed files with 12 additions and 8 deletions

View File

@ -6,9 +6,9 @@
<PackageId>CryptoExchange.Net</PackageId> <PackageId>CryptoExchange.Net</PackageId>
<Authors>JKorf</Authors> <Authors>JKorf</Authors>
<Description>CryptoExchange.Net is a base library which is used to implement different cryptocurrency (exchange) API's. It provides a standardized way of implementing different API's, which results in a very similar experience for users of the API implementations.</Description> <Description>CryptoExchange.Net is a base library which is used to implement different cryptocurrency (exchange) API's. It provides a standardized way of implementing different API's, which results in a very similar experience for users of the API implementations.</Description>
<PackageVersion>10.6.1</PackageVersion> <PackageVersion>10.6.2</PackageVersion>
<AssemblyVersion>10.6.1</AssemblyVersion> <AssemblyVersion>10.6.2</AssemblyVersion>
<FileVersion>10.6.1</FileVersion> <FileVersion>10.6.2</FileVersion>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance> <PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageTags>OKX;OKX.Net;Mexc;Mexc.Net;Kucoin;Kucoin.Net;Kraken;Kraken.Net;Huobi;Huobi.Net;CoinEx;CoinEx.Net;Bybit;Bybit.Net;Bitget;Bitget.Net;Bitfinex;Bitfinex.Net;Binance;Binance.Net;CryptoCurrency;CryptoCurrency Exchange;CryptoExchange.Net</PackageTags> <PackageTags>OKX;OKX.Net;Mexc;Mexc.Net;Kucoin;Kucoin.Net;Kraken;Kraken.Net;Huobi;Huobi.Net;CoinEx;CoinEx.Net;Bybit;Bybit.Net;Bitget;Bitget.Net;Bitfinex;Bitfinex.Net;Binance;Binance.Net;CryptoCurrency;CryptoCurrency Exchange;CryptoExchange.Net</PackageTags>
<RepositoryType>git</RepositoryType> <RepositoryType>git</RepositoryType>

View File

@ -170,6 +170,6 @@ namespace CryptoExchange.Net.Objects.Sockets
} }
/// <inheritdoc /> /// <inheritdoc />
public override string ToString() => base.ToString().TrimEnd('-') + Data?.ToString(); public override string ToString() => base.ToString().TrimEnd(' ', '-') + " - " + Data?.ToString();
} }
} }

View File

@ -1137,7 +1137,7 @@ namespace CryptoExchange.Net.Sockets.Default
return CallResult.SuccessResult; return CallResult.SuccessResult;
} }
subQuery.OnComplete = () => var subCompleteHandler = () =>
{ {
subscription.Status = subQuery.Result!.Success ? SubscriptionStatus.Subscribed : SubscriptionStatus.Pending; subscription.Status = subQuery.Result!.Success ? SubscriptionStatus.Subscribed : SubscriptionStatus.Pending;
subscription.HandleSubQueryResponse(this, subQuery.Response); subscription.HandleSubQueryResponse(this, subQuery.Response);
@ -1150,6 +1150,7 @@ namespace CryptoExchange.Net.Sockets.Default
}, false); }, false);
} }
}; };
subQuery.OnComplete = subCompleteHandler;
var subQueryResult = await SendAndWaitQueryAsync(subQuery).ConfigureAwait(false); var subQueryResult = await SendAndWaitQueryAsync(subQuery).ConfigureAwait(false);
if (!subQueryResult) if (!subQueryResult)
@ -1161,6 +1162,9 @@ namespace CryptoExchange.Net.Sockets.Default
return new CallResult<UpdateSubscription>(subQueryResult.Error!); return new CallResult<UpdateSubscription>(subQueryResult.Error!);
} }
if (!subQuery.ExpectsResponse)
subCompleteHandler();
return subQueryResult; return subQueryResult;
} }

View File

@ -71,9 +71,6 @@ namespace CryptoExchange.Net.Trackers.UserData
UserDataTrackerConfig config, UserDataTrackerConfig config,
string? userIdentifier) string? userIdentifier)
{ {
if (config.OnlyTrackProvidedSymbols && !config.TrackedSymbols.Any())
throw new ArgumentException(nameof(config.TrackedSymbols), "Conflicting options; `OnlyTrackProvidedSymbols` but no symbols specific in `TrackedSymbols`");
_logger = logger; _logger = logger;
SymbolTracker = new UserDataSymbolTracker(logger, config); SymbolTracker = new UserDataSymbolTracker(logger, config);

View File

@ -67,6 +67,9 @@ Make a one time donation in a crypto currency of your choice. If you prefer to d
Alternatively, sponsor me on Github using [Github Sponsors](https://github.com/sponsors/JKorf). Alternatively, sponsor me on Github using [Github Sponsors](https://github.com/sponsors/JKorf).
## Release notes ## Release notes
* Version 10.6.2 - 17 Feb 2026
* Fix for websocket queries which don't expects response getting stuck in subscribing state
* Version 10.6.1 - 16 Feb 2026 * Version 10.6.1 - 16 Feb 2026
* Fixed exception when stopping SymbolOrderBook instance when update is received while closing * Fixed exception when stopping SymbolOrderBook instance when update is received while closing