mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-12 00:43:03 +00:00
38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using System;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
/// <summary>
|
|
/// Public trade info
|
|
/// </summary>
|
|
public record SharedTrade : SharedSymbolModel
|
|
{
|
|
/// <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(SharedSymbol? sharedSymbol, string symbol, decimal quantity, decimal price, DateTime timestamp) : base(sharedSymbol, symbol)
|
|
{
|
|
Quantity = quantity;
|
|
Price = price;
|
|
Timestamp = timestamp;
|
|
}
|
|
}
|
|
}
|