48 lines
1.1 KiB
C#
48 lines
1.1 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace FinlyticTechnicals.Entities;
|
|
|
|
[Table("fta_candles")]
|
|
public class FtaCandleEntity
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public long Id { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(20)]
|
|
public string Isin { get; set; } = string.Empty;
|
|
|
|
[MaxLength(30)]
|
|
public string Symbol { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[MaxLength(10)]
|
|
public string Timeframe { get; set; } = "15m";
|
|
|
|
[Required]
|
|
public DateTime TimestampUtc { get; set; }
|
|
|
|
[Column(TypeName = "decimal(18,4)")]
|
|
public decimal Open { get; set; }
|
|
|
|
[Column(TypeName = "decimal(18,4)")]
|
|
public decimal High { get; set; }
|
|
|
|
[Column(TypeName = "decimal(18,4)")]
|
|
public decimal Low { get; set; }
|
|
|
|
[Column(TypeName = "decimal(18,4)")]
|
|
public decimal Close { get; set; }
|
|
|
|
public long Volume { get; set; }
|
|
|
|
[Column(TypeName = "decimal(18,4)")]
|
|
public decimal? Bid { get; set; }
|
|
|
|
[Column(TypeName = "decimal(18,4)")]
|
|
public decimal? Ask { get; set; }
|
|
}
|