mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-11-07 02:37:55 +00:00
ae7504c26c
Added V2 Shared API's infrastructure Added request coalescing Added rate limiting admission logic Fixed some rate limiting issues
51 lines
1.5 KiB
C#
51 lines
1.5 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
/// <summary>
|
|
/// Transfer info
|
|
/// </summary>
|
|
[DebuggerDisplay("[{Timestamp}] {Quantity} {Asset,nq} {FromAccountType} -> {ToAccountType}")]
|
|
public record SharedTransfer
|
|
{
|
|
/// <summary>
|
|
/// The id of the Transfer
|
|
/// </summary>
|
|
public string? Id { get; set; }
|
|
/// <summary>
|
|
/// The asset of the Transfer
|
|
/// </summary>
|
|
public string Asset { get; set; }
|
|
/// <summary>
|
|
/// The quantity that was Transfered
|
|
/// </summary>
|
|
public decimal Quantity { get; set; }
|
|
/// <summary>
|
|
/// Timestamp of the Transfer
|
|
/// </summary>
|
|
public DateTime Timestamp { get; set; }
|
|
/// <summary>
|
|
/// Source account type
|
|
/// </summary>
|
|
public SharedAccountType FromAccountType { get; set; }
|
|
/// <summary>
|
|
/// Target account type
|
|
/// </summary>
|
|
public SharedAccountType ToAccountType { get; set; }
|
|
|
|
/// <summary>
|
|
/// ctor
|
|
/// </summary>
|
|
public SharedTransfer(string asset, decimal quantity, SharedAccountType fromAccountType, SharedAccountType toAccountType, DateTime timestamp)
|
|
{
|
|
Asset = asset;
|
|
Quantity = quantity;
|
|
Timestamp = timestamp;
|
|
FromAccountType = fromAccountType;
|
|
ToAccountType = toAccountType;
|
|
}
|
|
}
|
|
|
|
}
|