mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-08 00:16:27 +00:00
35 lines
1.3 KiB
C#
35 lines
1.3 KiB
C#
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
/// <summary>
|
|
/// Client for requesting ticker info for futures symbols
|
|
/// </summary>
|
|
public interface IFuturesTickerRestClient : ISharedClient
|
|
{
|
|
/// <summary>
|
|
/// Futures get ticker request options
|
|
/// </summary>
|
|
EndpointOptions<GetTickerRequest> GetFuturesTickerOptions { get; }
|
|
/// <summary>
|
|
/// Get ticker info for a specific futures symbol
|
|
/// </summary>
|
|
/// <param name="request">Request info</param>
|
|
/// <param name="ct">Cancellation token</param>
|
|
Task<ExchangeWebResult<SharedFuturesTicker>> GetFuturesTickerAsync(GetTickerRequest request, CancellationToken ct = default);
|
|
|
|
/// <summary>
|
|
/// Futures get tickers request options
|
|
/// </summary>
|
|
EndpointOptions<GetTickersRequest> GetFuturesTickersOptions { get; }
|
|
/// <summary>
|
|
/// Get ticker info for all futures symbols
|
|
/// </summary>
|
|
/// <param name="request">Request info</param>
|
|
/// <param name="ct">Cancellation token</param>
|
|
Task<ExchangeWebResult<SharedFuturesTicker[]>> GetFuturesTickersAsync(GetTickersRequest request, CancellationToken ct = default);
|
|
}
|
|
}
|