diff --git a/CoinEx.Net.UnitTests/CoinEx.Net.UnitTests.csproj b/CoinEx.Net.UnitTests/CoinEx.Net.UnitTests.csproj
index 6328bde..5b2a89a 100644
--- a/CoinEx.Net.UnitTests/CoinEx.Net.UnitTests.csproj
+++ b/CoinEx.Net.UnitTests/CoinEx.Net.UnitTests.csproj
@@ -8,10 +8,10 @@
-
-
-
-
+
+
+
+
diff --git a/CoinEx.Net.UnitTests/CoinExClientTests.cs b/CoinEx.Net.UnitTests/CoinExClientTests.cs
index 00a2e68..124b906 100644
--- a/CoinEx.Net.UnitTests/CoinExClientTests.cs
+++ b/CoinEx.Net.UnitTests/CoinExClientTests.cs
@@ -19,93 +19,51 @@
using CoinEx.Net.Clients.SpotApi;
using CoinEx.Net.ExtensionMethods;
using CryptoExchange.Net.Objects.Sockets;
+using NUnit.Framework.Legacy;
namespace CoinEx.Net.UnitTests
{
[TestFixture]
public class CoinExClientTests
{
- //[Test]
- //public async Task GetKlines_Should_RespondWithKlines()
- //{
- // // arrange
- // CoinExKline[] expected = new CoinExKline[] {
- // new CoinExKline(),
- // new CoinExKline(),
- // };
- // var objects = TestHelpers.PrepareClient(() => Construct(), CreateRequest(expected));
-
- // // act
- // var result = await objects.Client.GetKlinesAsync("ETHBTC", KlineInterval.FiveMinute);
-
- // // assert
- // Assert.AreEqual(true, result.Success);
- // TestHelpers.PublicInstancePropertiesEqual(expected[0], result.Data.ToList()[0]);
- // TestHelpers.PublicInstancePropertiesEqual(expected[1], result.Data.ToList()[1]);
- //}
-
- //[Test]
- //public async Task ReceivingCoinExError_Should_ReturnCoinExErrorAndNotSuccess()
- //{
- // // arrange
- // var response = JsonConvert.SerializeObject(new CoinExApiResult
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/CoinEx.Net/CoinEx.Net.xml b/CoinEx.Net/CoinEx.Net.xml
index 04d53ee..25340d9 100644
--- a/CoinEx.Net/CoinEx.Net.xml
+++ b/CoinEx.Net/CoinEx.Net.xml
@@ -106,10 +106,7 @@
-
-
-
-
+
@@ -225,7 +222,7 @@
-
+
diff --git a/CoinEx.Net/CoinExAuthenticationProvider.cs b/CoinEx.Net/CoinExAuthenticationProvider.cs
index d5ddf3d..a0749fa 100644
--- a/CoinEx.Net/CoinExAuthenticationProvider.cs
+++ b/CoinEx.Net/CoinExAuthenticationProvider.cs
@@ -7,6 +7,7 @@
using CryptoExchange.Net.Interfaces;
using CoinEx.Net.Objects.Internal;
using System.Linq;
+using CryptoExchange.Net.Clients;
namespace CoinEx.Net
{
@@ -25,7 +26,7 @@ public CoinExAuthenticationProvider(ApiCredentials credentials, INonceProvider?
_nonceProvider = nonceProvider ?? new CoinExNonceProvider();
}
- public override void AuthenticateRequest(RestApiClient apiClient, Uri uri, HttpMethod method, Dictionary providedParameters, bool auth, ArrayParametersSerialization arraySerialization, HttpMethodParameterPosition parameterPosition, out SortedDictionary uriParameters, out SortedDictionary bodyParameters, out Dictionary headers)
+ public override void AuthenticateRequest(RestApiClient apiClient, Uri uri, HttpMethod method, Dictionary providedParameters, bool auth, ArrayParametersSerialization arraySerialization, HttpMethodParameterPosition parameterPosition, RequestBodyFormat bodyFormat, out SortedDictionary uriParameters, out SortedDictionary bodyParameters, out Dictionary headers)
{
uriParameters = parameterPosition == HttpMethodParameterPosition.InUri ? new SortedDictionary(providedParameters) : new SortedDictionary();
bodyParameters = parameterPosition == HttpMethodParameterPosition.InBody ? new SortedDictionary(providedParameters) : new SortedDictionary();
diff --git a/CoinEx.Net/Objects/Internal/CoinExApiResult.cs b/CoinEx.Net/Objects/Internal/CoinExApiResult.cs
index 039d981..26f91da 100644
--- a/CoinEx.Net/Objects/Internal/CoinExApiResult.cs
+++ b/CoinEx.Net/Objects/Internal/CoinExApiResult.cs
@@ -1,9 +1,13 @@
namespace CoinEx.Net.Objects.Internal
{
- internal class CoinExApiResult
+ internal class CoinExApiResult
{
public string? Message { get; set; }
public int Code { get; set; }
+ }
+
+ internal class CoinExApiResult : CoinExApiResult
+ {
public T Data { get; set; } = default!;
}
}
diff --git a/CoinEx.Net/Objects/Sockets/Queries/CoinExQuery.cs b/CoinEx.Net/Objects/Sockets/Queries/CoinExQuery.cs
index e050ea2..54ccdf9 100644
--- a/CoinEx.Net/Objects/Sockets/Queries/CoinExQuery.cs
+++ b/CoinEx.Net/Objects/Sockets/Queries/CoinExQuery.cs
@@ -21,12 +21,12 @@ public CoinExQuery(string method, IEnumerable