using CryptoExchange.Net.Objects;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace CryptoExchange.Net.SharedApis
{
///
/// Request definition for closing a position on an exchange.
///
public interface IClosePositionRest : ISharedRest
{
///
/// Close position order 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.
///
ClosePositionOptions ClosePositionOptions { get; }
///
/// Close a currently open position, see for request options and exchange specific required/optional parameters.
///
/// Request info
/// Cancellation token
///
Task> ClosePositionAsync(ClosePositionRequest request, CancellationToken ct = default);
}
}