mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-21 10:31:05 +00:00
Shared API's V2 (#289)
Added V2 Shared API's infrastructure Added request coalescing Added rate limiting admission logic Fixed some rate limiting issues
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user