49 lines
1.2 KiB
C#
49 lines
1.2 KiB
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace KLHZ.Trader.Core.DataLayer.Entities.Trades
|
|
{
|
|
/// <summary>
|
|
/// Сделка, совершенная ботом.
|
|
/// </summary>
|
|
[Table("trades")]
|
|
public class Trade
|
|
{
|
|
[Column("trade_id")]
|
|
public long Id { get; set; }
|
|
|
|
[Column("bought_at")]
|
|
public DateTime BoughtAt { get; set; }
|
|
|
|
[Column("account_id")]
|
|
public required string AccountId { 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("count_lots")]
|
|
public decimal CountLots { get; set; }
|
|
|
|
[Column("archive_status")]
|
|
public int ArchiveStatus { get; set; }
|
|
|
|
[Column("direction")]
|
|
public TradeDirection Direction { get; set; }
|
|
|
|
[Column("position_type")]
|
|
public PositionType Position { get; set; }
|
|
|
|
[Column("asset_type")]
|
|
public AssetType Asset { get; set; }
|
|
}
|
|
}
|