1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-08 00:16:27 +00:00

Fix Api key rate limit

This commit is contained in:
JKorf 2023-03-18 14:22:09 +01:00
parent da6ed580f1
commit 89c11afc21

View File

@ -213,7 +213,7 @@ namespace CryptoExchange.Net
{ {
foreach (var limiter in RateLimiters) foreach (var limiter in RateLimiters)
{ {
var limitResult = await limiter.LimitRequestAsync(_log, uri.AbsolutePath, method, signed, Options.ApiCredentials?.Key, Options.RateLimitingBehaviour, requestWeight, cancellationToken).ConfigureAwait(false); var limitResult = await limiter.LimitRequestAsync(_log, uri.AbsolutePath, method, signed, Options.ApiCredentials?.Key ?? ClientOptions.ApiCredentials?.Key, Options.RateLimitingBehaviour, requestWeight, cancellationToken).ConfigureAwait(false);
if (!limitResult.Success) if (!limitResult.Success)
return new CallResult<IRequest>(limitResult.Error!); return new CallResult<IRequest>(limitResult.Error!);
} }