mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-04 02:11:11 +00:00
ae7504c26c
Added V2 Shared API's infrastructure Added request coalescing Added rate limiting admission logic Fixed some rate limiting issues
31 lines
974 B
C#
31 lines
974 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
public static partial class SharedCapabilities
|
|
{
|
|
/// <summary>
|
|
/// Public trade capabilities.
|
|
/// </summary>
|
|
public static class Trades
|
|
{
|
|
/// <summary>
|
|
/// Get recent trades capability.
|
|
/// </summary>
|
|
public static SharedRestCapability<IGetRecentTrades, IGetRecentTradesRest> GetRecentTrades { get; } = new();
|
|
|
|
/// <summary>
|
|
/// Get trade history capability.
|
|
/// </summary>
|
|
public static SharedRestCapability<IGetTradeHistory, IGetTradeHistoryRest> GetTradeHistory { get; } = new();
|
|
|
|
/// <summary>
|
|
/// Subscribe to trade updates capability.
|
|
/// </summary>
|
|
public static SharedCapabilityReference<ISubscribeTradesSocket> SubscribeTrades { get; } = new();
|
|
}
|
|
}
|
|
}
|