mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-14 07:01:46 +00:00
53 lines
2.4 KiB
C#
53 lines
2.4 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>
|
|
/// Request definition for retrieving spot symbols from an exchange.
|
|
/// </summary>
|
|
public interface IGetSpotSymbolsEndpoint : ISharedApiEndpoint
|
|
{
|
|
/// <summary>
|
|
/// Get the spot symbol catalog. Only available if <see cref="GetSpotSymbolsAsync(GetSymbolsRequest, CancellationToken)"/> has been called previously.
|
|
/// </summary>
|
|
SharedSymbolCatalog? SpotSymbolCatalog { get; }
|
|
|
|
/// <summary>
|
|
/// Get all spot symbols for a specific base asset
|
|
/// </summary>
|
|
/// <param name="baseAsset">Asset, for example `ETH`</param>
|
|
Task<ExchangeCallResult<SharedSymbol[]>> GetSpotSymbolsForBaseAssetAsync(string baseAsset);
|
|
|
|
/// <summary>
|
|
/// Gets whether the client supports a spot symbol
|
|
/// </summary>
|
|
/// <param name="symbol">The symbol</param>
|
|
Task<ExchangeCallResult<bool>> SupportsSpotSymbolAsync(SharedSymbol symbol);
|
|
|
|
/// <summary>
|
|
/// Gets whether the client supports a spot symbol
|
|
/// </summary>
|
|
/// <param name="symbolName">The symbol name</param>
|
|
Task<ExchangeCallResult<bool>> SupportsSpotSymbolAsync(string symbolName);
|
|
|
|
/// <summary>
|
|
/// Spot symbols request options.<br />
|
|
/// Use <see cref="EndpointOptions{TRequest, TClient}.RequiredRequestParameters"/>, <see cref="EndpointOptions.RequiredExchangeParameters"/> and <see cref="EndpointOptions.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>
|
|
GetSpotSymbolsOptions GetSpotSymbolsOptions { get; }
|
|
|
|
/// <summary>
|
|
/// Get info on all available spot symbols on the exchange, see <see cref="GetSpotSymbolsOptions"/> for request options and exchange specific required/optional parameters. <br />
|
|
/// </summary>
|
|
/// <param name="request">Request info</param>
|
|
/// <param name="ct">Cancellation token</param>
|
|
Task<HttpResult<SharedSpotSymbol[]>> GetSpotSymbolsAsync(GetSymbolsRequest request, CancellationToken ct = default);
|
|
}
|
|
}
|