diff --git a/HTX.Net/Clients/SpotApi/HTXSocketClientSpotApi.cs b/HTX.Net/Clients/SpotApi/HTXSocketClientSpotApi.cs
index 28388d4..3526799 100644
--- a/HTX.Net/Clients/SpotApi/HTXSocketClientSpotApi.cs
+++ b/HTX.Net/Clients/SpotApi/HTXSocketClientSpotApi.cs
@@ -97,16 +97,16 @@ protected override AuthenticationProvider CreateAuthenticationProvider(ApiCreden
=> new HTXAuthenticationProvider(credentials, false);
///
- protected override Query GetAuthenticationRequest(SocketConnection connection)
+ protected override Task GetAuthenticationRequestAsync(SocketConnection connection)
{
var path = connection.ConnectionUri;
- return new HTXAuthQuery(new HTXAuthRequest
+ return Task.FromResult(new HTXAuthQuery(new HTXAuthRequest
{
Action = "req",
Channel = "auth",
Params = ((HTXAuthenticationProvider)AuthenticationProvider!).GetWebsocketAuthentication(path)
- });
+ }));
}
///
diff --git a/HTX.Net/Clients/UsdtFutures/HTXSocketClientUsdtFuturesApi.cs b/HTX.Net/Clients/UsdtFutures/HTXSocketClientUsdtFuturesApi.cs
index abfb06e..49377d2 100644
--- a/HTX.Net/Clients/UsdtFutures/HTXSocketClientUsdtFuturesApi.cs
+++ b/HTX.Net/Clients/UsdtFutures/HTXSocketClientUsdtFuturesApi.cs
@@ -61,10 +61,10 @@ public override ReadOnlyMemory PreprocessStreamMessage(SocketConnection co
return data.DecompressGzip();
}
- protected override Query? GetAuthenticationRequest(SocketConnection connection)
+ protected override Task GetAuthenticationRequestAsync(SocketConnection connection)
{
var request = ((HTXAuthenticationProvider)AuthenticationProvider!).GetWebsocketAuthentication2(connection.ConnectionUri);
- return new HTXOpAuthQuery(request);
+ return Task.FromResult(new HTXOpAuthQuery(request));
}
///
diff --git a/HTX.Net/HTX.Net.csproj b/HTX.Net/HTX.Net.csproj
index 6734804..b0b5fa8 100644
--- a/HTX.Net/HTX.Net.csproj
+++ b/HTX.Net/HTX.Net.csproj
@@ -48,7 +48,7 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/HTX.Net/HTX.Net.xml b/HTX.Net/HTX.Net.xml
index c55433d..b867748 100644
--- a/HTX.Net/HTX.Net.xml
+++ b/HTX.Net/HTX.Net.xml
@@ -437,7 +437,7 @@
-
+