1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-10-17 16:40:55 +00:00
This commit is contained in:
Jkorf
2026-08-26 14:26:24 +02:00
parent d0ce2563de
commit d93d6b7a2e
213 changed files with 1173 additions and 560 deletions
@@ -0,0 +1,28 @@
using System;
using System.Threading.Tasks;
using System.Threading;
using CryptoExchange.Net.Objects.Sockets;
using CryptoExchange.Net.Objects;
namespace CryptoExchange.Net.SharedApis
{
/// <summary>
/// Client for subscribing to kline/candlestick updates for a symbol
/// </summary>
public interface IKlineSocketClient : ISharedClient
{
/// <summary>
/// Kline subscription options
/// </summary>
SubscribeKlineOptions SubscribeKlineOptions { get; }
/// <summary>
/// Subscribe to kline/candlestick updates for a symbol
/// </summary>
/// <param name="request">Request info</param>
/// <param name="handler">Update handler</param>
/// <param name="ct">Cancellation token, can be used to stop the updates</param>
/// <returns></returns>
Task<WebSocketResult<UpdateSubscription>> SubscribeToKlineUpdatesAsync(SubscribeKlineRequest request, Action<DataEvent<SharedKline>> handler, CancellationToken ct = default);
}
}