mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-07 16:06:15 +00:00
25 lines
770 B
C#
25 lines
770 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
/// <summary>
|
|
/// Client for retrieving the order book for a symbol
|
|
/// </summary>
|
|
public interface IOrderBookRestClient : ISharedClient
|
|
{
|
|
/// <summary>
|
|
/// Order book request options
|
|
/// </summary>
|
|
GetOrderBookOptions GetOrderBookOptions { get; }
|
|
|
|
/// <summary>
|
|
/// Get the order book for a symbol
|
|
/// </summary>
|
|
/// <param name="request">Request info</param>
|
|
/// <param name="ct">Cancellation token</param>
|
|
/// <returns></returns>
|
|
Task<ExchangeWebResult<SharedOrderBook>> GetOrderBookAsync(GetOrderBookRequest request, CancellationToken ct = default);
|
|
}
|
|
}
|