klhztrader/KLHZ.Trader.Core/DataLayer/Entities/Prices/ProcessedPrice.cs

42 lines
1.0 KiB
C#

using KLHZ.Trader.Core.Contracts.Messaging.Dtos.Interfaces;
using System.ComponentModel.DataAnnotations.Schema;
namespace KLHZ.Trader.Core.DataLayer.Entities.Prices
{
[Table("processed_prices")]
public class ProcessedPrice : IProcessedPrice
{
[Column("id")]
public long Id { get; set; }
[Column("time")]
public DateTime Time { get; set; }
[Column("value")]
public decimal Price { get; set; }
[Column("figi")]
public required string Figi { get; set; }
[Column("ticker")]
public required string Ticker { get; set; }
public bool IsHistoricalData { get; set; }
[Column("processor")]
public required string Processor { get; set; }
[NotMapped]
public long Count { get; set; }
[NotMapped]
public int Direction { get; set; }
[NotMapped]
public decimal Value { get; set; }
[NotMapped]
public decimal Value2 { get; set; }
}
}