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
58 lines
2.1 KiB
C#
58 lines
2.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
public static partial class SharedCapabilities
|
|
{
|
|
/// <summary>
|
|
/// Trigger order capabilities.
|
|
/// </summary>
|
|
public static class TriggerOrders
|
|
{
|
|
/// <summary>
|
|
/// Spot trigger order capabilities.
|
|
/// </summary>
|
|
public static class Spot
|
|
{
|
|
/// <summary>
|
|
/// Place a spot trigger order capability.
|
|
/// </summary>
|
|
public static SharedRestCapability<IPlaceSpotTriggerOrder, IPlaceSpotTriggerOrderRest> PlaceOrder { get; } = new();
|
|
|
|
/// <summary>
|
|
/// Get a spot trigger order capability.
|
|
/// </summary>
|
|
public static SharedRestCapability<IGetSpotTriggerOrder, IGetSpotTriggerOrderRest> GetOrder { get; } = new();
|
|
|
|
/// <summary>
|
|
/// Cancel a spot trigger order capability.
|
|
/// </summary>
|
|
public static SharedRestCapability<ICancelSpotTriggerOrder, ICancelSpotTriggerOrderRest> CancelOrder { get; } = new();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Futures trigger order capabilities.
|
|
/// </summary>
|
|
public static class Futures
|
|
{
|
|
/// <summary>
|
|
/// Place a futures trigger order capability.
|
|
/// </summary>
|
|
public static SharedRestCapability<IPlaceFuturesTriggerOrder, IPlaceFuturesTriggerOrderRest> PlaceOrder { get; } = new();
|
|
|
|
/// <summary>
|
|
/// Get a futures trigger order capability.
|
|
/// </summary>
|
|
public static SharedRestCapability<IGetFuturesTriggerOrder, IGetFuturesTriggerOrderRest> GetOrder { get; } = new();
|
|
|
|
/// <summary>
|
|
/// Cancel a futures trigger order capability.
|
|
/// </summary>
|
|
public static SharedRestCapability<ICancelFuturesTriggerOrder, ICancelFuturesTriggerOrderRest> CancelOrder { get; } = new();
|
|
}
|
|
}
|
|
}
|
|
}
|