diff --git a/ByBit.Net/Bybit.Net.csproj b/ByBit.Net/Bybit.Net.csproj
index 5187e675..3381e053 100644
--- a/ByBit.Net/Bybit.Net.csproj
+++ b/ByBit.Net/Bybit.Net.csproj
@@ -7,9 +7,9 @@
Bybit.Net
JKorf
- 3.0.6
- 3.0.6
- 3.0.6
+ 3.0.7
+ 3.0.7
+ 3.0.7
Bybit.Net is a .Net wrapper for the Bybit API. It includes all features the API provides, REST API and Websocket, using clear and readable objects including but not limited to Reading market info, Placing and managing orders and Reading balances and funds
false
Bybit Bybit.Net C# .Net CryptoCurrency Exchange API wrapper
@@ -20,7 +20,7 @@
icon.png
en
true
- 3.0.6 - Changed V5 API body content type from formdata to json
+ 3.0.7 - Updated CryptoExchange.Net7
Bybit.Net.xml
@@ -42,7 +42,6 @@
-
all
runtime; build; native; contentfiles; analyzers; buildtransitive
@@ -52,4 +51,7 @@
runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
\ No newline at end of file
diff --git a/ByBit.Net/Clients/CopyTradingApi/BybitSocketClientCopyTradingApi.cs b/ByBit.Net/Clients/CopyTradingApi/BybitSocketClientCopyTradingApi.cs
index 2c29c0d3..07ed3fca 100644
--- a/ByBit.Net/Clients/CopyTradingApi/BybitSocketClientCopyTradingApi.cs
+++ b/ByBit.Net/Clients/CopyTradingApi/BybitSocketClientCopyTradingApi.cs
@@ -155,7 +155,7 @@ protected override async Task> AuthenticateSocketAsync(SocketCo
var result = false;
var error = "unspecified error";
- await socketConnection.SendAndWaitAsync(authRequest, ClientOptions.RequestTimeout, null, data =>
+ await socketConnection.SendAndWaitAsync(authRequest, ClientOptions.RequestTimeout, null, 1, data =>
{
if (data.Type != JTokenType.Object)
return false;
@@ -275,7 +275,7 @@ protected override async Task UnsubscribeAsync(SocketConnection connection
var message = new BybitRequestMessage { Operation = "unsubscribe", Parameters = requestParams };
var result = false;
- await connection.SendAndWaitAsync(message, ClientOptions.RequestTimeout, null, data =>
+ await connection.SendAndWaitAsync(message, ClientOptions.RequestTimeout, null, 1, data =>
{
if (data.Type != JTokenType.Object)
return false;
diff --git a/ByBit.Net/Clients/DerivativesApi/BybitSocketClientDerivativesPublicApi.cs b/ByBit.Net/Clients/DerivativesApi/BybitSocketClientDerivativesPublicApi.cs
index fb39d823..5d081232 100644
--- a/ByBit.Net/Clients/DerivativesApi/BybitSocketClientDerivativesPublicApi.cs
+++ b/ByBit.Net/Clients/DerivativesApi/BybitSocketClientDerivativesPublicApi.cs
@@ -208,7 +208,7 @@ protected override async Task> AuthenticateSocketAsync(SocketCo
var result = false;
var error = "unspecified error";
- await socketConnection.SendAndWaitAsync(authRequest, ClientOptions.RequestTimeout, null, data =>
+ await socketConnection.SendAndWaitAsync(authRequest, ClientOptions.RequestTimeout, null, 1, data =>
{
if (data.Type != JTokenType.Object)
return false;
@@ -315,7 +315,7 @@ protected override async Task UnsubscribeAsync(SocketConnection connection
var message = new BybitRequestMessage { Operation = "unsubscribe", Parameters = requestParams };
var result = false;
- await connection.SendAndWaitAsync(message, ClientOptions.RequestTimeout, null, data =>
+ await connection.SendAndWaitAsync(message, ClientOptions.RequestTimeout, null, 1, data =>
{
if (data.Type != JTokenType.Object)
return false;
diff --git a/ByBit.Net/Clients/DerivativesApi/ContractApi/BybitSocketClientContractApi.cs b/ByBit.Net/Clients/DerivativesApi/ContractApi/BybitSocketClientContractApi.cs
index 7238673c..6b157fda 100644
--- a/ByBit.Net/Clients/DerivativesApi/ContractApi/BybitSocketClientContractApi.cs
+++ b/ByBit.Net/Clients/DerivativesApi/ContractApi/BybitSocketClientContractApi.cs
@@ -155,7 +155,7 @@ protected override async Task> AuthenticateSocketAsync(SocketCo
var result = false;
var error = "unspecified error";
- await socketConnection.SendAndWaitAsync(authRequest, ClientOptions.RequestTimeout, null, data =>
+ await socketConnection.SendAndWaitAsync(authRequest, ClientOptions.RequestTimeout, null, 1, data =>
{
if (data.Type != JTokenType.Object)
return false;
@@ -273,7 +273,7 @@ protected override async Task UnsubscribeAsync(SocketConnection connection
var message = new BybitRequestMessage { Operation = "unsubscribe", Parameters = requestParams };
var result = false;
- await connection.SendAndWaitAsync(message, ClientOptions.RequestTimeout, null, data =>
+ await connection.SendAndWaitAsync(message, ClientOptions.RequestTimeout, null, 1, data =>
{
if (data.Type != JTokenType.Object)
return false;
diff --git a/ByBit.Net/Clients/DerivativesApi/UnifiedMarginApi/BybitSocketClientUnifiedMarginApi.cs b/ByBit.Net/Clients/DerivativesApi/UnifiedMarginApi/BybitSocketClientUnifiedMarginApi.cs
index 6ec97343..804b77a3 100644
--- a/ByBit.Net/Clients/DerivativesApi/UnifiedMarginApi/BybitSocketClientUnifiedMarginApi.cs
+++ b/ByBit.Net/Clients/DerivativesApi/UnifiedMarginApi/BybitSocketClientUnifiedMarginApi.cs
@@ -190,7 +190,7 @@ protected override async Task> AuthenticateSocketAsync(SocketCo
var result = false;
var error = "unspecified error";
- await socketConnection.SendAndWaitAsync(authRequest, ClientOptions.RequestTimeout, null, data =>
+ await socketConnection.SendAndWaitAsync(authRequest, ClientOptions.RequestTimeout, null, 1, data =>
{
if (data.Type != JTokenType.Object)
return false;
@@ -308,7 +308,7 @@ protected override async Task UnsubscribeAsync(SocketConnection connection
var message = new BybitRequestMessage { Operation = "unsubscribe", Parameters = requestParams };
var result = false;
- await connection.SendAndWaitAsync(message, ClientOptions.RequestTimeout, null, data =>
+ await connection.SendAndWaitAsync(message, ClientOptions.RequestTimeout, null, 1, data =>
{
if (data.Type != JTokenType.Object)
return false;
diff --git a/ByBit.Net/Clients/InversePerpetualApi/BybitSocketClientInversePerpetualApi.cs b/ByBit.Net/Clients/InversePerpetualApi/BybitSocketClientInversePerpetualApi.cs
index c73846f7..841132a1 100644
--- a/ByBit.Net/Clients/InversePerpetualApi/BybitSocketClientInversePerpetualApi.cs
+++ b/ByBit.Net/Clients/InversePerpetualApi/BybitSocketClientInversePerpetualApi.cs
@@ -404,7 +404,7 @@ protected override async Task> AuthenticateSocketAsync(SocketCo
var result = false;
var error = "unspecified error";
- await socketConnection.SendAndWaitAsync(authRequest, ClientOptions.RequestTimeout, null, data =>
+ await socketConnection.SendAndWaitAsync(authRequest, ClientOptions.RequestTimeout, null, 1, data =>
{
if (data.Type != JTokenType.Object)
return false;
@@ -524,7 +524,7 @@ protected override async Task UnsubscribeAsync(SocketConnection connection
var message = new BybitRequestMessage { Operation = "unsubscribe", Parameters = requestParams };
var result = false;
- await connection.SendAndWaitAsync(message, ClientOptions.RequestTimeout, null, data =>
+ await connection.SendAndWaitAsync(message, ClientOptions.RequestTimeout, null, 1, data =>
{
if (data.Type != JTokenType.Object)
return false;
diff --git a/ByBit.Net/Clients/SpotApi/BybitSocketClientBaseSpotApi.cs b/ByBit.Net/Clients/SpotApi/BybitSocketClientBaseSpotApi.cs
index 2f991e6a..1e113918 100644
--- a/ByBit.Net/Clients/SpotApi/BybitSocketClientBaseSpotApi.cs
+++ b/ByBit.Net/Clients/SpotApi/BybitSocketClientBaseSpotApi.cs
@@ -72,7 +72,7 @@ protected override async Task> AuthenticateSocketAsync(SocketCo
var result = false;
var error = "unspecified error";
- await socketConnection.SendAndWaitAsync(authRequest, ClientOptions.RequestTimeout, null, data =>
+ await socketConnection.SendAndWaitAsync(authRequest, ClientOptions.RequestTimeout, null, 1, data =>
{
if (data.Type != JTokenType.Object)
return false;
@@ -192,7 +192,7 @@ protected override async Task UnsubscribeAsync(SocketConnection connection
}
var result = false;
- await connection.SendAndWaitAsync(message, ClientOptions.RequestTimeout, null, data =>
+ await connection.SendAndWaitAsync(message, ClientOptions.RequestTimeout, null, 1, data =>
{
if (!isCheckable)
{
diff --git a/ByBit.Net/Clients/UsdPerpetualApi/BybitSocketClientUsdPerpetualApi.cs b/ByBit.Net/Clients/UsdPerpetualApi/BybitSocketClientUsdPerpetualApi.cs
index 33357b02..038256f8 100644
--- a/ByBit.Net/Clients/UsdPerpetualApi/BybitSocketClientUsdPerpetualApi.cs
+++ b/ByBit.Net/Clients/UsdPerpetualApi/BybitSocketClientUsdPerpetualApi.cs
@@ -354,7 +354,7 @@ protected override async Task> AuthenticateSocketAsync(SocketCo
var result = false;
var error = "unspecified error";
- await socketConnection.SendAndWaitAsync(authRequest, ClientOptions.RequestTimeout, null, data =>
+ await socketConnection.SendAndWaitAsync(authRequest, ClientOptions.RequestTimeout, null, 1, data =>
{
if (data.Type != JTokenType.Object)
return false;
@@ -473,7 +473,7 @@ protected override async Task UnsubscribeAsync(SocketConnection connection
var message = new BybitRequestMessage { Operation = "unsubscribe", Parameters = requestParams };
var result = false;
- await connection.SendAndWaitAsync(message, ClientOptions.RequestTimeout, null, data =>
+ await connection.SendAndWaitAsync(message, ClientOptions.RequestTimeout, null, 1, data =>
{
if (data.Type != JTokenType.Object)
return false;
diff --git a/ByBit.Net/Clients/V5/BybitSocketClientBaseApi.cs b/ByBit.Net/Clients/V5/BybitSocketClientBaseApi.cs
index 9dc685c1..94ca0b3e 100644
--- a/ByBit.Net/Clients/V5/BybitSocketClientBaseApi.cs
+++ b/ByBit.Net/Clients/V5/BybitSocketClientBaseApi.cs
@@ -64,7 +64,7 @@ public async Task> SubscribeToTradeUpdatesAsync(I
return await SubscribeAsync(
BaseAddress + _baseEndpoint,
- new BybitV5RequestMessage("subscribe", symbols.Select(s => "publicTrade." + s).ToArray(), NextId().ToString()),
+ new BybitV5RequestMessage("subscribe", symbols.Select(s => "publicTrade." + s).ToArray(), ExchangeHelpers.NextId().ToString()),
null, false, internalHandler, ct).ConfigureAwait(false);
}
@@ -96,7 +96,7 @@ public async Task> SubscribeToOrderbookUpdatesAsy
return await SubscribeAsync(
BaseAddress + _baseEndpoint,
- new BybitV5RequestMessage("subscribe", symbols.Select(s => $"orderbook.{depth}.{s}").ToArray(), NextId().ToString()),
+ new BybitV5RequestMessage("subscribe", symbols.Select(s => $"orderbook.{depth}.{s}").ToArray(), ExchangeHelpers.NextId().ToString()),
null, false, internalHandler, ct).ConfigureAwait(false);
}
@@ -126,7 +126,7 @@ public async Task> SubscribeToKlineUpdatesAsync(I
return await SubscribeAsync(
BaseAddress + _baseEndpoint,
- new BybitV5RequestMessage("subscribe", symbols.Select(s => $"kline.{EnumConverter.GetString(interval)}.{s}").ToArray(), NextId().ToString()),
+ new BybitV5RequestMessage("subscribe", symbols.Select(s => $"kline.{EnumConverter.GetString(interval)}.{s}").ToArray(), ExchangeHelpers.NextId().ToString()),
null, false, internalHandler, ct).ConfigureAwait(false);
}
@@ -155,7 +155,7 @@ public async Task> SubscribeToLiquidationUpdatesA
return await SubscribeAsync(
BaseAddress + _baseEndpoint,
- new BybitV5RequestMessage("subscribe", symbols.Select(s => $"liquidation.{s}").ToArray(), NextId().ToString()),
+ new BybitV5RequestMessage("subscribe", symbols.Select(s => $"liquidation.{s}").ToArray(), ExchangeHelpers.NextId().ToString()),
null, false, internalHandler, ct).ConfigureAwait(false);
}
}
diff --git a/ByBit.Net/Clients/V5/BybitSocketClientLinearApi.cs b/ByBit.Net/Clients/V5/BybitSocketClientLinearApi.cs
index d57caf74..63ae5d30 100644
--- a/ByBit.Net/Clients/V5/BybitSocketClientLinearApi.cs
+++ b/ByBit.Net/Clients/V5/BybitSocketClientLinearApi.cs
@@ -28,7 +28,7 @@ internal BybitSocketClientLinearApi(ILogger log, BybitSocketOptions options)
{
SendPeriodic("Ping", options.V5Options.PingInterval, (connection) =>
{
- return new BybitV5RequestMessage("ping", Array.Empty