Skip to content

Commit

Permalink
Feature/cc upd (#73)
Browse files Browse the repository at this point in the history
Updated CryptoExchange.Net
  • Loading branch information
JKorf authored Jun 23, 2024
1 parent bb55373 commit 1b14a34
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ public class CoinExSocketClientFuturesApi : SocketApiClient, ICoinExSocketClient
internal CoinExSocketClientFuturesApi(ILogger logger, CoinExSocketOptions options)
: base(logger, options.Environment.SocketBaseAddress, options, options.FuturesOptions)
{
HandleMessageBeforeConfirmation = true;

RegisterPeriodicQuery("Ping", TimeSpan.FromMinutes(1), q => (new CoinExQuery("server.ping", new Dictionary<string, object>())), null);
}
#endregion
Expand Down Expand Up @@ -81,7 +79,7 @@ protected override AuthenticationProvider CreateAuthenticationProvider(ApiCreden
}

/// <inheritdoc />
protected override Query? GetAuthenticationRequest()
protected override Query? GetAuthenticationRequest(SocketConnection connection)
{
var authProvider = (CoinExV2AuthenticationProvider)AuthenticationProvider!;
var authParams = authProvider.GetSocketAuthParameters();
Expand Down
2 changes: 1 addition & 1 deletion CoinEx.Net/Clients/SpotApiV1/CoinExSocketClientSpotApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected override AuthenticationProvider CreateAuthenticationProvider(ApiCreden
}

/// <inheritdoc />
protected override Query? GetAuthenticationRequest()
protected override Query? GetAuthenticationRequest(SocketConnection connection)
{
var authProvider = (CoinExAuthenticationProvider)AuthenticationProvider!;
var authParams = authProvider.GetSocketAuthParameters();
Expand Down
4 changes: 1 addition & 3 deletions CoinEx.Net/Clients/SpotApiV2/CoinExSocketClientSpotApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ public class CoinExSocketClientSpotApi : SocketApiClient, ICoinExSocketClientSpo
internal CoinExSocketClientSpotApi(ILogger logger, CoinExSocketOptions options)
: base(logger, options.Environment.SocketBaseAddress, options, options.SpotOptions)
{
HandleMessageBeforeConfirmation = true;

RegisterPeriodicQuery("Ping", TimeSpan.FromMinutes(1), q => (new CoinExQuery("server.ping", new Dictionary<string, object>())), null);
}
#endregion
Expand Down Expand Up @@ -81,7 +79,7 @@ protected override AuthenticationProvider CreateAuthenticationProvider(ApiCreden
}

/// <inheritdoc />
protected override Query? GetAuthenticationRequest()
protected override Query? GetAuthenticationRequest(SocketConnection connection)
{
var authProvider = (CoinExV2AuthenticationProvider)AuthenticationProvider!;
var authParams = authProvider.GetSocketAuthParameters();
Expand Down
2 changes: 1 addition & 1 deletion CoinEx.Net/CoinEx.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="CryptoExchange.Net" Version="7.6.0" />
<PackageReference Include="Crc32.NET" Version="1.2.0" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="CryptoExchange.Net" Version="7.7.0" />
</ItemGroup>
</Project>
6 changes: 3 additions & 3 deletions CoinEx.Net/CoinEx.Net.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1b14a34

Please sign in to comment.