klhztrader/KLHZ.Trader.Core/DataLayer/Entities/Trades/InstrumentTrade.cs

34 lines
880 B
C#
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System.ComponentModel.DataAnnotations.Schema;
namespace KLHZ.Trader.Core.DataLayer.Entities.Trades
{
/// <summary>
/// Обезличенная сделка с биржи над инструментом.
/// </summary>
[Table("instrument_trades")]
public class InstrumentTrade
{
[Column("trade_id")]
public long Id { get; set; }
[Column("bought_at")]
public DateTime BoughtAt { get; set; }
[Column("figi")]
public required string Figi { get; set; }
[Column("ticker")]
public required string Ticker { get; set; }
[Column("price")]
public decimal Price { get; set; }
[Column("count")]
public decimal Count { get; set; }
[Column("direction")]
public TradeDirection Direction { get; set; }
}
}