From 73c42bd452bb4d92b18eb6bdcfb44250a3927df9 Mon Sep 17 00:00:00 2001 From: Jkorf Date: Mon, 23 Dec 2024 14:25:39 +0100 Subject: [PATCH] Updated to version 8.5.0 --- .../Authentication/AuthenticationProvider.cs | 2 +- CryptoExchange.Net/CryptoExchange.Net.csproj | 6 +++--- CryptoExchange.Net/ExchangeHelpers.cs | 2 +- README.md | 10 ++++++++++ 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/CryptoExchange.Net/Authentication/AuthenticationProvider.cs b/CryptoExchange.Net/Authentication/AuthenticationProvider.cs index 0a201f38..c547433a 100644 --- a/CryptoExchange.Net/Authentication/AuthenticationProvider.cs +++ b/CryptoExchange.Net/Authentication/AuthenticationProvider.cs @@ -369,7 +369,7 @@ private RSA CreateRSA() var rsa = RSA.Create(); if (_credentials.CredentialType == ApiCredentialsType.RsaPem) { -#if NETSTANDARD2_1_OR_GREATER +#if NETSTANDARD2_1_OR_GREATER || NET9_0_OR_GREATER // Read from pem private key var key = _credentials.Secret! .Replace("\n", "") diff --git a/CryptoExchange.Net/CryptoExchange.Net.csproj b/CryptoExchange.Net/CryptoExchange.Net.csproj index 64929ef1..ac1afbf8 100644 --- a/CryptoExchange.Net/CryptoExchange.Net.csproj +++ b/CryptoExchange.Net/CryptoExchange.Net.csproj @@ -6,9 +6,9 @@ CryptoExchange.Net JKorf 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. - 8.4.5 - 8.4.5 - 8.4.5 + 8.5.0 + 8.5.0 + 8.5.0 false 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 git diff --git a/CryptoExchange.Net/ExchangeHelpers.cs b/CryptoExchange.Net/ExchangeHelpers.cs index d5f55473..05a4574c 100644 --- a/CryptoExchange.Net/ExchangeHelpers.cs +++ b/CryptoExchange.Net/ExchangeHelpers.cs @@ -180,7 +180,7 @@ public static string RandomString(int length) { var randomChars = new char[length]; -#if NETSTANDARD2_1_OR_GREATER +#if NETSTANDARD2_1_OR_GREATER || NET9_0_OR_GREATER for (int i = 0; i < length; i++) randomChars[i] = _allowedRandomChars[RandomNumberGenerator.GetInt32(0, _allowedRandomChars.Length)]; #else diff --git a/README.md b/README.md index 3f934348..f489ff35 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,16 @@ 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). ## Release notes +* Version 8.5.0 - 23 Dec 2024 + * Added SetOptions method to update client settings + * Added SocketConnection parameter to PeriodicQuery callback + * Added setting of DefaultProxyCredentials on HttpClient instance when client is not provided by DI + * Added support for overriding request timeout per request + * Added build target for net9.0 + * Added setting of KeepAliveTimeout on websocket connections to improve dropped connection detection + * Changed max wait time for close handshake response from 5 seconds to 1 second + * Fixed exception in trade tracker when there is no data in the initial snapshot + * Version 8.4.5 - 20 Dec 2024 * Added EmptyArrayObjectConverter System.Text.Json JsonConverter * Added JsonSerializerOptions parameter to SystemTextJsonMessageAccessor constructor