mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-12 00:43:03 +00:00
43 lines
1.5 KiB
C#
43 lines
1.5 KiB
C#
using CryptoExchange.Net.Objects;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
/// <summary>
|
|
/// Client for requesting spot symbols
|
|
/// </summary>
|
|
public interface ISpotSymbolRestClient : ISharedClient
|
|
{
|
|
/// <summary>
|
|
/// Spot symbols request options
|
|
/// </summary>
|
|
EndpointOptions<GetSymbolsRequest> GetSpotSymbolsOptions { get; }
|
|
|
|
/// <summary>
|
|
/// Get all spot symbols for a specific base asset
|
|
/// </summary>
|
|
/// <param name="baseAsset">Asset, for example `ETH`</param>
|
|
Task<ExchangeResult<SharedSymbol[]>> GetSpotSymbolsForBaseAssetAsync(string baseAsset);
|
|
|
|
/// <summary>
|
|
/// Gets whether the client supports a spot symbol
|
|
/// </summary>
|
|
/// <param name="symbol">The symbol</param>
|
|
Task<ExchangeResult<bool>> SupportsSpotSymbolAsync(SharedSymbol symbol);
|
|
|
|
/// <summary>
|
|
/// Gets whether the client supports a spot symbol
|
|
/// </summary>
|
|
/// <param name="symbolName">The symbol name</param>
|
|
Task<ExchangeResult<bool>> SupportsSpotSymbolAsync(string symbolName);
|
|
|
|
/// <summary>
|
|
/// Get info on all available spot symbols on the exchange
|
|
/// </summary>
|
|
/// <param name="request">Request info</param>
|
|
/// <param name="ct">Cancellation token</param>
|
|
Task<ExchangeWebResult<SharedSpotSymbol[]>> GetSpotSymbolsAsync(GetSymbolsRequest request, CancellationToken ct = default);
|
|
}
|
|
}
|