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/SharedTrade.cs
T
2024-10-23 14:01:17 +02:00

38 lines
1.0 KiB
C#

using System;
namespace CryptoExchange.Net.SharedApis
{
/// <summary>
/// Public trade info
/// </summary>
public record SharedTrade
{
/// <summary>
/// Quantity of the trade
/// </summary>
public decimal Quantity { get; set; }
/// <summary>
/// Price of the trade
/// </summary>
public decimal Price { get; set; }
/// <summary>
/// Trade time
/// </summary>
public DateTime Timestamp { get; set; }
/// <summary>
/// Trade side. Buy means that the taker took an ask order of the order book, sell means the taker took a bid order of the order book.
/// </summary>
public SharedOrderSide? Side { get; set; }
/// <summary>
/// ctor
/// </summary>
public SharedTrade(decimal quantity, decimal price, DateTime timestamp)
{
Quantity = quantity;
Price = price;
Timestamp = timestamp;
}
}
}