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/Spot/CancelAllSpotSymbolOrders/CancelAllSpotSymbolOrdersOptions.cs
T
Jkorf 911e09be61 wip
2026-09-10 15:03:29 +02:00

29 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace CryptoExchange.Net.SharedApis
{
/// <summary>
/// Options for canceling all open Spot orders for a specific symbol
/// </summary>
public class CancelAllSpotSymbolOrdersOptions : CapabilityOptions<CancelAllSymbolOrdersRequest, ICancelAllSpotSymbolOrders>
{
/// <inheritdoc />
public override string Description => "Cancel all open Spot orders for a specific symbol";
private static readonly RequestParameterDescription[] _defaultParameterRules = new[]
{
RequestParameterRule<CancelAllSymbolOrdersRequest>.Required(x => x.Symbol, "The symbol of the orders to cancel", new SharedSymbol(TradingMode.Spot, "ETH", "USDT")),
};
/// <summary>
/// ctor
/// </summary>
public CancelAllSpotSymbolOrdersOptions(string exchange, bool authenticated)
: base(exchange, authenticated, nameof(ICancelAllSpotSymbolOrders.CancelAllSpotSymbolOrdersAsync), _defaultParameterRules, SharedTradingModeSets.Spot)
{
}
}
}