mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-13 22:51:39 +00:00
ae7504c26c
Added V2 Shared API's infrastructure Added request coalescing Added rate limiting admission logic Fixed some rate limiting issues
41 lines
1.4 KiB
C#
41 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
public static partial class SharedCapabilities
|
|
{
|
|
/// <summary>
|
|
/// Ticker capabilities.
|
|
/// </summary>
|
|
public static class Tickers
|
|
{
|
|
/// <summary>
|
|
/// Get a ticker capability.
|
|
/// </summary>
|
|
public static SharedRestCapability<IGetTicker, IGetTickerRest> GetTicker { get; } = new();
|
|
|
|
/// <summary>
|
|
/// Get all tickers capability.
|
|
/// </summary>
|
|
public static SharedRestCapability<IGetAllTickers, IGetAllTickersRest> GetAllTickers { get; } = new();
|
|
|
|
/// <summary>
|
|
/// Subscribe to ticker updates capability.
|
|
/// </summary>
|
|
public static SharedCapabilityReference<ISubscribeTickerSocket> SubscribeTicker { get; } = new();
|
|
|
|
/// <summary>
|
|
/// Subscribe to all ticker updates capability.
|
|
/// </summary>
|
|
public static SharedCapabilityReference<ISubscribeAllTickersSocket> SubscribeAllTickers { get; } = new();
|
|
|
|
/// <summary>
|
|
/// Subscribe to book ticker updates capability.
|
|
/// </summary>
|
|
public static SharedCapabilityReference<ISubscribeBookTickerSocket> SubscribeBookTicker { get; } = new();
|
|
}
|
|
}
|
|
}
|