mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-07 16:06:15 +00:00
26 lines
823 B
C#
26 lines
823 B
C#
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
/// <summary>
|
|
/// Client for retrieving the most recent public trades
|
|
/// </summary>
|
|
public interface IRecentTradeRestClient : ISharedClient
|
|
{
|
|
/// <summary>
|
|
/// Recent trades request options
|
|
/// </summary>
|
|
GetRecentTradesOptions GetRecentTradesOptions { get; }
|
|
|
|
/// <summary>
|
|
/// Get the most recent public trades
|
|
/// </summary>
|
|
/// <param name="request">Request info</param>
|
|
/// <param name="ct">Cancellation token</param>
|
|
/// <returns></returns>
|
|
Task<ExchangeWebResult<SharedTrade[]>> GetRecentTradesAsync(GetRecentTradesRequest request, CancellationToken ct = default);
|
|
}
|
|
}
|