mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-15 23:50:54 +00:00
ae7504c26c
Added V2 Shared API's infrastructure Added request coalescing Added rate limiting admission logic Fixed some rate limiting issues
52 lines
1.2 KiB
C#
52 lines
1.2 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|