34 lines
915 B
C#
34 lines
915 B
C#
using KLHZ.Trader.Core.Common.Messaging.Contracts.Messages;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace KLHZ.Trader.Core.DataLayer.Entities.Prices
|
|
{
|
|
[Table("candles")]
|
|
public class Candle : INewCandle
|
|
{
|
|
[Column("time")]
|
|
public DateTime Time { get; set; }
|
|
|
|
[Column("figi")]
|
|
public required string Figi { get; set; }
|
|
|
|
[Column("open")]
|
|
public decimal Open { get; set; }
|
|
[Column("close")]
|
|
public decimal Close { get; set; }
|
|
[Column("volume")]
|
|
public decimal Volume { get; set; }
|
|
|
|
[Column("high")]
|
|
public decimal High { get; set; }
|
|
[Column("low")]
|
|
public decimal Low { get; set; }
|
|
|
|
[Column("ticker")]
|
|
public required string Ticker { get; set; }
|
|
|
|
[NotMapped]
|
|
public bool IsHistoricalData { get; set; }
|
|
}
|
|
}
|