1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-11-07 02:37:55 +00:00
Files
CryptoExchange.Net/CryptoExchange.Net/SharedApis/Models/SharedTransfer.cs
T
Jan Korf ae7504c26c Shared API's V2 (#289)
Added V2 Shared API's infrastructure
Added request coalescing
Added rate limiting admission logic
Fixed some rate limiting issues
2026-09-23 09:15:39 +02:00

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;
}
}
}