using CryptoExchange.Net.Objects; using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; namespace CryptoExchange.Net.SharedApis { /// /// Operation for retrieving the index price for a symbol from an exchange. /// public interface IGetIndexPrice : ISharedApiCapability { /// /// Index price request options.
/// Use and to check for required and optional parameters for the request.
/// Exchange specific parameters can be added to the request via the `ExchangeParameters` property of the request object. ///
GetIndexPriceOptions GetIndexPriceOptions { get; } /// /// Get the index price for a symbol, see for request options and exchange specific required/optional parameters.
///
/// Request info /// Cancellation token Task> GetIndexPriceAsync(GetIndexPriceRequest request, CancellationToken ct = default); } /// /// Operation for retrieving the index price for a symbol from an exchange via the REST API. /// public interface IGetIndexPriceRest : IGetIndexPrice, ISharedRest { /// new Task> GetIndexPriceAsync(GetIndexPriceRequest request, CancellationToken ct = default); } }