diff --git a/ByBit.Net/Clients/V5/BybitSocketClientBaseApi.cs b/ByBit.Net/Clients/V5/BybitSocketClientBaseApi.cs index 94ca0b3e..4def3773 100644 --- a/ByBit.Net/Clients/V5/BybitSocketClientBaseApi.cs +++ b/ByBit.Net/Clients/V5/BybitSocketClientBaseApi.cs @@ -131,11 +131,11 @@ public async Task> SubscribeToKlineUpdatesAsync(I } /// - public Task> SubscribeToLiquidationUpdatesAsync(string symbol, Action>> handler, CancellationToken ct = default) + public Task> SubscribeToLiquidationUpdatesAsync(string symbol, Action> handler, CancellationToken ct = default) => SubscribeToLiquidationUpdatesAsync(new string[] { symbol }, handler, ct); /// - public async Task> SubscribeToLiquidationUpdatesAsync(IEnumerable symbols, Action>> handler, CancellationToken ct = default) + public async Task> SubscribeToLiquidationUpdatesAsync(IEnumerable symbols, Action> handler, CancellationToken ct = default) { var internalHandler = new Action>(data => { @@ -143,7 +143,7 @@ public async Task> SubscribeToLiquidationUpdatesA if (internalData == null) return; - var desResult = Deserialize>(internalData); + var desResult = Deserialize(internalData); if (!desResult) { _logger.Log(LogLevel.Warning, $"Failed to deserialize {nameof(BybitLiquidation)} object: " + desResult.Error); diff --git a/ByBit.Net/Interfaces/Clients/V5/IBybitSocketClientLinearApi.cs b/ByBit.Net/Interfaces/Clients/V5/IBybitSocketClientLinearApi.cs index 548e8d06..970c5605 100644 --- a/ByBit.Net/Interfaces/Clients/V5/IBybitSocketClientLinearApi.cs +++ b/ByBit.Net/Interfaces/Clients/V5/IBybitSocketClientLinearApi.cs @@ -41,7 +41,7 @@ public interface IBybitSocketClientLinearApi : IBybitSocketClientBaseApi /// Data handler /// Cancellation token. Cancelling will cancel the subscription /// - Task> SubscribeToLiquidationUpdatesAsync(IEnumerable symbols, Action>> handler, CancellationToken ct = default); + Task> SubscribeToLiquidationUpdatesAsync(IEnumerable symbols, Action> handler, CancellationToken ct = default); /// /// Subscribe to liquidation updates @@ -51,7 +51,7 @@ public interface IBybitSocketClientLinearApi : IBybitSocketClientBaseApi /// Data handler /// Cancellation token. Cancelling will cancel the subscription /// - Task> SubscribeToLiquidationUpdatesAsync(string symbol, Action>> handler, CancellationToken ct = default); + Task> SubscribeToLiquidationUpdatesAsync(string symbol, Action> handler, CancellationToken ct = default); } } \ No newline at end of file diff --git a/ByBit.Net/Interfaces/Clients/V5/IBybitSocketClientOptionApi.cs b/ByBit.Net/Interfaces/Clients/V5/IBybitSocketClientOptionApi.cs index 69986d01..56f337b5 100644 --- a/ByBit.Net/Interfaces/Clients/V5/IBybitSocketClientOptionApi.cs +++ b/ByBit.Net/Interfaces/Clients/V5/IBybitSocketClientOptionApi.cs @@ -41,7 +41,7 @@ public interface IBybitSocketClientOptionApi : IBybitSocketClientBaseApi /// Data handler /// Cancellation token. Cancelling will cancel the subscription /// - Task> SubscribeToLiquidationUpdatesAsync(IEnumerable symbols, Action>> handler, CancellationToken ct = default); + Task> SubscribeToLiquidationUpdatesAsync(IEnumerable symbols, Action> handler, CancellationToken ct = default); /// /// Subscribe to liquidation updates @@ -51,7 +51,7 @@ public interface IBybitSocketClientOptionApi : IBybitSocketClientBaseApi /// Data handler /// Cancellation token. Cancelling will cancel the subscription /// - Task> SubscribeToLiquidationUpdatesAsync(string symbol, Action>> handler, CancellationToken ct = default); + Task> SubscribeToLiquidationUpdatesAsync(string symbol, Action> handler, CancellationToken ct = default); } } \ No newline at end of file