mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-10-29 17:37:26 +00:00
20 lines
554 B
C#
20 lines
554 B
C#
using CryptoExchange.Net.Objects;
|
|
|
|
namespace CryptoExchange.Net.Interfaces
|
|
{
|
|
/// <summary>
|
|
/// Rate limiter interface
|
|
/// </summary>
|
|
public interface IRateLimiter
|
|
{
|
|
/// <summary>
|
|
/// Limit the request if needed
|
|
/// </summary>
|
|
/// <param name="client"></param>
|
|
/// <param name="url"></param>
|
|
/// <param name="limitBehaviour"></param>
|
|
/// <returns></returns>
|
|
CallResult<double> LimitRequest(RestClient client, string url, RateLimitingBehaviour limitBehaviour);
|
|
}
|
|
}
|