mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-18 03:43:00 +00:00
fcb36f7ee0
Added SpotSymbolCatalog to Shared ISpotSymbolRestClient interface Added FuturesSymbolCatalog to Shared IFuturesSymbolRestClient interface Added BaseAssetType, BaseAssetSubType, QuoteAssetType and QuoteAssetSubType to GetSymbolsRequest model Added DisplayName to SharedSpotSymbol and SharedFuturesSymbol models Added BaseAssetType, BaseAssetSubType, QuoteAssetType and QuoteAssetSubType to SharedSpotSymbol and SharedFuturesSymbol models Added IsStableCoin, IsCommodity and IsEquity helper methods to LibraryHelpers
50 lines
2.2 KiB
C#
50 lines
2.2 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>
|
|
/// Get the spot symbol catalog. Only available if <see cref="GetSpotSymbolsAsync(GetSymbolsRequest, CancellationToken)"/> has been called previously.
|
|
/// </summary>
|
|
SharedSymbolCatalog? SpotSymbolCatalog { get; }
|
|
|
|
/// <summary>
|
|
/// Spot symbols request options.<br />
|
|
/// Use <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 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>
|
|
/// 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);
|
|
}
|
|
}
|