using CryptoExchange.Net.Objects; using System.Threading; using System.Threading.Tasks; namespace CryptoExchange.Net.SharedApis { /// /// Client for getting position history /// public interface IPositionHistoryRestClient : ISharedClient { /// /// Position history 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. ///
GetPositionHistoryOptions GetPositionHistoryOptions { get; } /// /// Get position history, see for request options and exchange specific required/optional parameters.
/// The result is paginated, if there are more results to be retrieved, the `NextPageRequest` 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 `NextPageRequest` property to continue pagination /// Cancellation token Task> GetPositionHistoryAsync(GetPositionHistoryRequest request, PageRequest? nextPageToken = null, CancellationToken ct = default); } }