using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using System.Threading; namespace CryptoExchange.Net.SharedApis { /// /// Take profit / Stop loss client /// public interface IFuturesTpSlRestClient : ISharedClient { /// /// Set take profit and/or stop loss options /// EndpointOptions SetFuturesTpSlOptions { get; } /// /// Set a take profit and/or stop loss for an open position /// /// Request info /// Cancellation token /// Task> SetFuturesTpSlAsync(SetTpSlRequest request, CancellationToken ct = default); /// /// Cancel a take profit and/or stop loss options /// EndpointOptions CancelFuturesTpSlOptions { get; } /// /// Cancel an active take profit and/or stop loss for an open position /// /// Request info /// Cancellation token /// Task> CancelFuturesTpSlAsync(CancelTpSlRequest request, CancellationToken ct = default); } }