diff --git a/OKX.Net.UnitTests/JsonTests.cs b/OKX.Net.UnitTests/JsonTests.cs index 0ed0717..459571b 100644 --- a/OKX.Net.UnitTests/JsonTests.cs +++ b/OKX.Net.UnitTests/JsonTests.cs @@ -15,7 +15,7 @@ public class JsonTests private JsonToObjectComparer _comparer = new JsonToObjectComparer((json) => TestHelpers.CreateResponseClient(json, x => { x.ApiCredentials = new OKXApiCredentials("1234", "1234", "11"); - x.UnifiedOptions.RateLimiters = new List(); + x.RateLimiterEnabled = false; x.UnifiedOptions.OutputOriginalData = false; })); diff --git a/OKX.Net/Clients/UnifiedApi/OKXRestClientUnifiedApi.cs b/OKX.Net/Clients/UnifiedApi/OKXRestClientUnifiedApi.cs index 96ad3f4..cdb25aa 100644 --- a/OKX.Net/Clients/UnifiedApi/OKXRestClientUnifiedApi.cs +++ b/OKX.Net/Clients/UnifiedApi/OKXRestClientUnifiedApi.cs @@ -52,9 +52,9 @@ internal OKXRestClientUnifiedApi(ILogger logger, HttpClient? httpClient, OKXRest protected override AuthenticationProvider CreateAuthenticationProvider(ApiCredentials credentials) => new OKXAuthenticationProvider((OKXApiCredentials)credentials); - internal async Task> ExecuteAsync(Uri uri, HttpMethod method, CancellationToken ct, Dictionary? parameters = null, bool signed = false, int weight = 1, bool ignoreRatelimit = false, HttpMethodParameterPosition? parameterPosition = null) where T : class + internal async Task> ExecuteAsync(Uri uri, HttpMethod method, CancellationToken ct, Dictionary? parameters = null, bool signed = false, HttpMethodParameterPosition? parameterPosition = null) where T : class { - var result = await SendRequestAsync(uri, method, ct, parameters, signed, parameterPosition: parameterPosition, requestWeight: weight, ignoreRatelimit: ignoreRatelimit).ConfigureAwait(false); + var result = await SendRequestAsync(uri, method, ct, parameters, signed, parameterPosition: parameterPosition, requestWeight: 0).ConfigureAwait(false); if (!result) return result.AsError(result.Error!); return result.As(result.Data); diff --git a/OKX.Net/OKX.Net.csproj b/OKX.Net/OKX.Net.csproj index 50d68a0..3a41eec 100644 --- a/OKX.Net/OKX.Net.csproj +++ b/OKX.Net/OKX.Net.csproj @@ -53,6 +53,6 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + \ No newline at end of file