mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2026-02-16 14:13:46 +00:00
35 lines
1.4 KiB
C#
35 lines
1.4 KiB
C#
using System.Threading.Tasks;
|
|
using System.Threading;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
/// <summary>
|
|
/// Client for managing futures orders using a client order id
|
|
/// </summary>
|
|
public interface IFuturesOrderClientIdRestClient : ISharedClient
|
|
{
|
|
/// <summary>
|
|
/// Futures get order by client order id request options
|
|
/// </summary>
|
|
EndpointOptions<GetOrderRequest> GetFuturesOrderByClientOrderIdOptions { get; }
|
|
|
|
/// <summary>
|
|
/// Get info on a specific futures order using a client order id
|
|
/// </summary>
|
|
/// <param name="request">Request info</param>
|
|
/// <param name="ct">Cancellation token</param>
|
|
Task<ExchangeWebResult<SharedFuturesOrder>> GetFuturesOrderByClientOrderIdAsync(GetOrderRequest request, CancellationToken ct = default);
|
|
|
|
/// <summary>
|
|
/// Futures cancel order by client order id request options
|
|
/// </summary>
|
|
EndpointOptions<CancelOrderRequest> CancelFuturesOrderByClientOrderIdOptions { get; }
|
|
/// <summary>
|
|
/// Cancel a futures order using client order id
|
|
/// </summary>
|
|
/// <param name="request">Request info</param>
|
|
/// <param name="ct">Cancellation token</param>
|
|
Task<ExchangeWebResult<SharedId>> CancelFuturesOrderByClientOrderIdAsync(CancelOrderRequest request, CancellationToken ct = default);
|
|
}
|
|
}
|