using CryptoExchange.Net.Objects;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace CryptoExchange.Net.SharedApis
{
///
/// Endpoint definition for retrieving closed futures orders on an exchange.
///
public interface IGetClosedFuturesOrdersRest : ISharedRest
{
///
/// Spot get closed orders 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.
///
GetFuturesClosedOrdersOptions GetClosedFuturesOrdersOptions { get; }
///
/// Get info on closed futures orders, see for request options and exchange specific required/optional parameters.
/// The result is paginated, if there are more results to be retrieved, the property of the result will contain the pagination request to be used for the next request to continue pagination.
///
/// Request info
/// The pagination request from the previous request result property to continue pagination
/// Cancellation token
Task> GetClosedFuturesOrdersAsync(GetClosedOrdersRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default);
}
}