1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-14 01:42:55 +00:00
Files
CryptoExchange.Net/CryptoExchange.Net/SharedApis/ResponseModels/SharedWithdrawal.cs
T
2024-09-27 09:17:44 +02:00

69 lines
1.9 KiB
C#

using System;
namespace CryptoExchange.Net.SharedApis
{
/// <summary>
/// A withdrawal record
/// </summary>
public record SharedWithdrawal
{
/// <summary>
/// The id of the withdrawal
/// </summary>
public string? Id { get; set; }
/// <summary>
/// The asset that was withdrawn
/// </summary>
public string Asset { get; set; }
/// <summary>
/// The withdrawal address
/// </summary>
public string Address { get; set; }
/// <summary>
/// Quantity that was withdrawn
/// </summary>
public decimal Quantity { get; set; }
/// <summary>
/// The timestamp of the withdrawal
/// </summary>
public DateTime Timestamp { get; set; }
/// <summary>
/// Whether the withdrawal was successfully completed
/// </summary>
public bool Completed { get; set; }
/// <summary>
/// Tag
/// </summary>
public string? Tag { get; set; }
/// <summary>
/// Used network
/// </summary>
public string? Network { get; set; }
/// <summary>
/// Transaction id
/// </summary>
public string? TransactionId { get; set; }
/// <summary>
/// Number of confirmations
/// </summary>
public int? Confirmations { get; set; }
/// <summary>
/// Fee paid
/// </summary>
public decimal? Fee { get; set; }
/// <summary>
/// ctor
/// </summary>
public SharedWithdrawal(string asset, string address, decimal quantity, bool completed, DateTime timestamp)
{
Asset = asset;
Address = address;
Quantity = quantity;
Completed = completed;
Timestamp = timestamp;
}
}
}