mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-04 10:21:13 +00:00
ae7504c26c
Added V2 Shared API's infrastructure Added request coalescing Added rate limiting admission logic Fixed some rate limiting issues
29 lines
994 B
C#
29 lines
994 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
public static partial class SharedCapabilities
|
|
{
|
|
/// <summary>
|
|
/// Index price capabilities.
|
|
/// </summary>
|
|
public static class IndexPrices
|
|
{
|
|
/// <summary>
|
|
/// Get an index price capability.
|
|
/// </summary>
|
|
public static SharedRestCapability<IGetIndexPrice, IGetIndexPriceRest> GetIndexPrice { get; } = new();
|
|
/// <summary>
|
|
/// Get all index prices capability.
|
|
/// </summary>
|
|
public static SharedRestCapability<IGetAllIndexPrices, IGetAllIndexPricesRest> GetAllIndexPrices { get; } = new();
|
|
/// <summary>
|
|
/// Subscribe to index price updates capability.
|
|
/// </summary>
|
|
public static SharedCapabilityReference<ISubscribeIndexPriceSocket> SubscribeIndexPrice { get; } = new();
|
|
}
|
|
}
|
|
}
|