39 lines
994 B
C#
39 lines
994 B
C#
using KLHZ.Trader.Core.Contracts.Messaging.Dtos.Interfaces;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace KLHZ.Trader.Core.DataLayer.Entities.Prices
|
|
{
|
|
[Table("price_changes")]
|
|
public class PriceChange : ITradeDataItem
|
|
{
|
|
[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; }
|
|
|
|
[NotMapped]
|
|
public bool IsHistoricalData { get; set; }
|
|
[Column("count")]
|
|
public long Count { get; set; }
|
|
|
|
[Column("direction")]
|
|
public int Direction { get; set; }
|
|
|
|
[NotMapped]
|
|
public decimal Value { get; set; }
|
|
|
|
[NotMapped]
|
|
public decimal Value2 { get; set; }
|
|
}
|
|
}
|