1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-10-14 15:11:44 +00:00
Files
CryptoExchange.Net/CryptoExchange.Net/SharedApis/Models/Options/Subscriptions/SubscribeTickerOptions.cs
T

25 lines
841 B
C#

namespace CryptoExchange.Net.SharedApis
{
/// <summary>
/// Options for subscribing to ticker updates
/// </summary>
public class SubscribeTickerOptions : EndpointOptions<SubscribeTickerRequest, ITickerSocketClient>
{
/// <inheritdoc />
public override string Description => "Subscribe to price ticker updates for a symbol";
/// <summary>
/// Type of ticker calculation
/// </summary>
public SharedTickerType TickerType { get; set; }
/// <summary>
/// ctor
/// </summary>
public SubscribeTickerOptions(string exchange, SharedTickerType? tickerCalcType = null) : base(exchange, false, nameof(ITickerSocketClient.SubscribeToTickerUpdatesAsync))
{
TickerType = tickerCalcType ?? SharedTickerType.Day24H;
}
}
}