using CryptoExchange.Net.Objects.Sockets;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace CryptoExchange.Net.SharedApis
{
///
/// Client for subscribing to ticker updates for a symbol
///
public interface ITickerSocketClient : ISharedClient
{
///
/// Ticker subscription options
///
EndpointOptions SubscribeTickerOptions { get; }
///
/// Subscribe to ticker updates for a symbol
///
/// Request info
/// Update handler
/// Cancellation token, can be used to stop the updates
///
Task> SubscribeToTickerUpdatesAsync(SubscribeTickerRequest request, Action> handler, CancellationToken ct = default);
}
}