1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-10-19 09:31:43 +00:00
Files
CryptoExchange.Net/CryptoExchange.Net/SharedApis/V2/Orders/Futures/CancelAllFuturesOrders/ICancelAllFuturesOrder.cs
T
Jan Korf ae7504c26c Shared API's V2 (#289)
Added V2 Shared API's infrastructure
Added request coalescing
Added rate limiting admission logic
Fixed some rate limiting issues
2026-09-23 09:15:39 +02:00

48 lines
2.1 KiB
C#

using CryptoExchange.Net.Objects;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace CryptoExchange.Net.SharedApis
{
/// <summary>
/// Operation for canceling all Futures orders on an exchange.
/// </summary>
public interface ICancelAllFuturesOrders : ISharedApiCapability
{
/// <summary>
/// Futures cancel all orders request options.<br />
/// Use <see cref="CapabilityOptions.RequestParameterRules"/> and <see cref="CapabilityOptions.ExchangeParameterRules"/> to check for required and optional parameters for the request. <br />
/// Exchange specific parameters can be added to the request via the `ExchangeParameters` property of the request object.
/// </summary>
CancelAllFuturesOrdersOptions CancelAllFuturesOrdersOptions { get; }
/// <summary>
/// Cancel all Futures orders, see <see cref="SharedApis.CancelAllFuturesOrdersOptions"/> for request options and exchange specific required/optional parameters. <br />
/// </summary>
/// <param name="request">Request info</param>
/// <param name="ct">Cancellation token</param>
Task<IExchangeCallResult> CancelAllFuturesOrdersAsync(CancelAllOrdersRequest request, CancellationToken ct = default);
}
/// <summary>
/// Operation for canceling all Futures orders on an exchange via the REST API.
/// </summary>
public interface ICancelAllFuturesOrdersRest : ICancelAllFuturesOrders, ISharedRest
{
/// <inheritdoc />
new Task<HttpResult> CancelAllFuturesOrdersAsync(CancelAllOrdersRequest request, CancellationToken ct = default);
}
/// <summary>
/// Operation for canceling all Futures orders on an exchange via the WebSocket API.
/// </summary>
public interface ICancelAllFuturesOrdersSocket : ICancelAllFuturesOrders, ISharedSocket
{
/// <inheritdoc />
new Task<QueryResult> CancelAllFuturesOrdersAsync(CancelAllOrdersRequest request, CancellationToken ct = default);
}
}