Skip to content

Commit

Permalink
Updated CryptoExchange.Net version
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Nov 6, 2024
1 parent 78691b2 commit c9ee4fb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions HTX.Net/Clients/SpotApi/HTXSocketClientSpotApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,16 @@ protected override AuthenticationProvider CreateAuthenticationProvider(ApiCreden
=> new HTXAuthenticationProvider(credentials, false);

/// <inheritdoc />
protected override Query GetAuthenticationRequest(SocketConnection connection)
protected override Task<Query?> GetAuthenticationRequestAsync(SocketConnection connection)
{
var path = connection.ConnectionUri;

return new HTXAuthQuery(new HTXAuthRequest<HTXAuthParams>
return Task.FromResult<Query?>(new HTXAuthQuery(new HTXAuthRequest<HTXAuthParams>
{
Action = "req",
Channel = "auth",
Params = ((HTXAuthenticationProvider)AuthenticationProvider!).GetWebsocketAuthentication(path)
});
}));
}

/// <inheritdoc />
Expand Down
4 changes: 2 additions & 2 deletions HTX.Net/Clients/UsdtFutures/HTXSocketClientUsdtFuturesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ public override ReadOnlyMemory<byte> PreprocessStreamMessage(SocketConnection co
return data.DecompressGzip();
}

protected override Query? GetAuthenticationRequest(SocketConnection connection)
protected override Task<Query?> GetAuthenticationRequestAsync(SocketConnection connection)
{
var request = ((HTXAuthenticationProvider)AuthenticationProvider!).GetWebsocketAuthentication2(connection.ConnectionUri);
return new HTXOpAuthQuery(request);
return Task.FromResult<Query?>(new HTXOpAuthQuery(request));
}

/// <inheritdoc />
Expand Down
2 changes: 1 addition & 1 deletion HTX.Net/HTX.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="CryptoExchange.Net" Version="8.1.0" />
<PackageReference Include="CryptoExchange.Net" Version="8.2.0" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
2 changes: 1 addition & 1 deletion HTX.Net/HTX.Net.xml
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
<member name="M:HTX.Net.Clients.SpotApi.HTXSocketClientSpotApi.CreateAuthenticationProvider(CryptoExchange.Net.Authentication.ApiCredentials)">
<inheritdoc />
</member>
<member name="M:HTX.Net.Clients.SpotApi.HTXSocketClientSpotApi.GetAuthenticationRequest(CryptoExchange.Net.Sockets.SocketConnection)">
<member name="M:HTX.Net.Clients.SpotApi.HTXSocketClientSpotApi.GetAuthenticationRequestAsync(CryptoExchange.Net.Sockets.SocketConnection)">
<inheritdoc />
</member>
<member name="M:HTX.Net.Clients.SpotApi.HTXSocketClientSpotApi.GetKlinesAsync(System.String,HTX.Net.Enums.KlineInterval)">
Expand Down

0 comments on commit c9ee4fb

Please sign in to comment.