mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-11-02 11:27:38 +00:00
25 lines
844 B
C#
25 lines
844 B
C#
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
/// <summary>
|
|
/// Request to subscribe to kline/candlestick updates
|
|
/// </summary>
|
|
public record SubscribeKlineRequest : SharedSymbolRequest
|
|
{
|
|
/// <summary>
|
|
/// The kline interval
|
|
/// </summary>
|
|
public SharedKlineInterval Interval { get; set; }
|
|
|
|
/// <summary>
|
|
/// ctor
|
|
/// </summary>
|
|
/// <param name="symbol">The symbol to subscribe to</param>
|
|
/// <param name="interval">Kline interval</param>
|
|
/// <param name="exchangeParameters">Exchange specific parameters</param>
|
|
public SubscribeKlineRequest(SharedSymbol symbol, SharedKlineInterval interval, ExchangeParameters? exchangeParameters = null) : base(symbol, exchangeParameters)
|
|
{
|
|
Interval = interval;
|
|
}
|
|
}
|
|
}
|