using CryptoExchange.Net.Objects; using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; namespace CryptoExchange.Net.SharedApis { /// /// Operation for retrieving an order book snapshot for a symbol on an exchange. /// public interface IGetOrderBook : ISharedApiCapability { /// /// Order book request options.
/// Use , and to check for required and optional parameters for the request.
/// Exchange specific parameters can be added to the request via the `ExchangeParameters` property of the request object. ///
GetOrderBookOptions GetOrderBookOptions { get; } /// /// Get the order book for a symbol, see for request options and exchange specific required/optional parameters.
///
/// Request info /// Cancellation token /// Task> GetOrderBookAsync(GetOrderBookRequest request, CancellationToken ct = default); } /// /// Operation for retrieving an order book snapshot for a symbol on an exchange via the REST API. /// public interface IGetOrderBookRest : IGetOrderBook, ISharedRest { /// new Task> GetOrderBookAsync(GetOrderBookRequest request, CancellationToken ct = default); } }