mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-14 15:11:44 +00:00
25 lines
841 B
C#
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;
|
|
}
|
|
}
|
|
}
|