1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-10-26 21:10:39 +00:00
This commit is contained in:
Jkorf
2026-09-04 16:21:13 +02:00
parent a545efbb45
commit 431ef93611
301 changed files with 910 additions and 1 deletions
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CryptoExchange.Net.SharedApis
{
/// <summary>
/// Options for requesting trading fee info
/// </summary>
public class GetFeeOptions : CapabilityOptions<GetFeeRequest, IGetFeesRest>
{
/// <inheritdoc />
public override string Description => "Retrieve trading fee information";
/// <summary>
/// ctor
/// </summary>
public GetFeeOptions(string exchange, bool authenticated) : base(exchange, authenticated, nameof(IGetFeesRest.GetFeesAsync))
{
}
}
}
@@ -0,0 +1,38 @@
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 retrieving user trading fees from an exchange.
/// </summary>
public interface IGetFees : ISharedApiCapability
{
/// <summary>
/// Fee request options.<br />
/// Use <see cref="CapabilityOptions.RequiredRequestParameters"/>, <see cref="CapabilityOptions.RequiredExchangeParameters"/> and <see cref="CapabilityOptions.OptionalExchangeParameters"/> 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>
GetFeeOptions GetFeeOptions { get; }
/// <summary>
/// Get trading fees for a symbol, see <see cref="GetFeeOptions"/> for request options and exchange specific required/optional parameters. <br />
/// </summary>
/// <param name="request">Request info</param>
/// <param name="ct">Cancellation token</param>
Task<ICallResult<SharedFee>> GetFeesAsync(GetFeeRequest request, CancellationToken ct = default);
}
/// <summary>
/// Operation for retrieving user trading fees from an exchange via the REST API.
/// </summary>
public interface IGetFeesRest : IGetFees, ISharedRest
{
/// <inheritdoc />
new Task<HttpResult<SharedFee>> GetFeesAsync(GetFeeRequest request, CancellationToken ct = default);
}
}