using CryptoExchange.Net.Objects;
using CryptoExchange.Net.Objects.Sockets;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace CryptoExchange.Net.SharedApis
{
///
/// Client for subscribing to book ticker updates for a symbol
///
public interface IBookTickerSocketClient : ISharedClient
{
///
/// Book ticker subscription options
///
SubscribeBookTickerOptions SubscribeBookTickerOptions { get; }
///
/// Subscribe to book ticker (best ask/bid) updates for a symbol
///
/// Request info
/// Update handler
/// Cancellation token, can be used to stop the updates
///
Task> SubscribeToBookTickerUpdatesAsync(SubscribeBookTickerRequest request, Action> handler, CancellationToken ct = default);
}
}