1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-10-19 17:40:59 +00:00
This commit is contained in:
Jkorf
2026-08-25 16:09:15 +02:00
parent 407509e9cd
commit d0ce2563de
155 changed files with 1714 additions and 621 deletions
@@ -0,0 +1,34 @@
using System.Text;
namespace CryptoExchange.Net.SharedApis
{
/// <summary>
/// Options for requesting tickers
/// </summary>
public class GetAllFuturesTickersOptions : EndpointOptions<GetTickersRequest, IGetAllFuturesTickersEndpoint>
{
/// <inheritdoc />
public override string Description => "Retrieve price ticker information for all futures symbols";
/// <summary>
/// Type of ticker calculation
/// </summary>
public SharedTickerType TickerType { get; set; } = SharedTickerType.Day24H;
/// <summary>
/// ctor
/// </summary>
public GetAllFuturesTickersOptions(string exchange, SharedTickerType? tickerCalcType = null) : base(exchange, false, nameof(IGetAllFuturesTickersEndpoint.GetAllFuturesTickersAsync))
{
TickerType = tickerCalcType ?? SharedTickerType.Day24H;
}
/// <inheritdoc />
public override string ToString()
{
var sb = new StringBuilder(base.ToString());
sb.AppendLine($" Ticker data calculation type: {TickerType}");
return sb.ToString();
}
}
}