1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-10-19 09:31:43 +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:
Jan Korf
2026-09-23 09:15:39 +02:00
committed by GitHub
parent cecfbcba48
commit ae7504c26c
482 changed files with 12870 additions and 2150 deletions
@@ -0,0 +1,51 @@
using System;
using System.Diagnostics;
namespace CryptoExchange.Net.SharedApis
{
/// <summary>
/// Funding fee payment
/// </summary>
[DebuggerDisplay("[{Timestamp}] {Symbol,nq} {Fee} {Asset,nq}")]
public record SharedFundingFee
{
/// <summary>
/// Id
/// </summary>
public string? Id { get; set; }
/// <summary>
/// The symbol
/// </summary>
public string Symbol { get; set; }
/// <summary>
/// The asset the funding fee was paid in
/// </summary>
public string? Asset { get; set; }
/// <summary>
/// The funding fee paid
/// </summary>
public decimal Fee { get; set; }
/// <summary>
/// Timestamp
/// </summary>
public DateTime Timestamp { get; set; }
/// <summary>
/// The side of the position
/// </summary>
public SharedPositionSide? Side { get; set; }
/// <summary>
/// ctor
/// </summary>
public SharedFundingFee(string symbol, decimal fee, DateTime timestamp)
{
Symbol = symbol;
Fee = fee;
Timestamp = timestamp;
}
}
}