mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-17 00:20:55 +00:00
ae7504c26c
Added V2 Shared API's infrastructure Added request coalescing Added rate limiting admission logic Fixed some rate limiting issues
31 lines
982 B
C#
31 lines
982 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
public static partial class SharedCapabilities
|
|
{
|
|
/// <summary>
|
|
/// Mark price capabilities.
|
|
/// </summary>
|
|
public static class MarkPrices
|
|
{
|
|
/// <summary>
|
|
/// Get a mark price capability.
|
|
/// </summary>
|
|
public static SharedRestCapability<IGetMarkPrice, IGetMarkPriceRest> GetMarkPrice { get; } = new();
|
|
|
|
/// <summary>
|
|
/// Get all mark prices capability.
|
|
/// </summary>
|
|
public static SharedRestCapability<IGetAllMarkPrices, IGetAllMarkPricesRest> GetAllMarkPrices { get; } = new();
|
|
|
|
/// <summary>
|
|
/// Subscribe to mark price updates capability.
|
|
/// </summary>
|
|
public static SharedCapabilityReference<ISubscribeMarkPriceSocket> SubscribeMarkPrice { get; } = new();
|
|
}
|
|
}
|
|
}
|