Closed mehtadone closed 6 years ago
@mehtadone I see how that might be misleading. The options (BinanceApiOptions
) are applied to the IApiRateLimiter
when BinanceHttpClient
is created and provide a means of passing appsettings.json
configuration to the rate limiters (as in the BinanceConsoleApp
sample). If you want to modify the rate limiter, use IApiRateLimiter.Configure(<duration>, <count>)
. To remove an existing duration/count combination set the count to 0 for that duration.
var client = new BinanceApi();
client.HttpClient.RateLimiter.Configure(TimeSpan.FromMinutes(1), 50);
client.HttpClient.RateLimiter.Configure(TimeSpan.FromSeconds(1), 5);
What is the correct way to alter the rate limiter on the BinanceApi. This does not seem to work:
Thanks,