25 lines
645 B
C#
25 lines
645 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace FinlyticTechnicalAnalysis.Entities;
|
|
|
|
[Table("MacroData")]
|
|
public class MacroDataEntity
|
|
{
|
|
[Key]
|
|
[MaxLength(20)]
|
|
public string Symbol { get; set; } = string.Empty; // "^VIX", "^GSPC", "DX-Y.NY"
|
|
|
|
[Column(TypeName = "decimal(18, 6)")]
|
|
public decimal Value { get; set; }
|
|
|
|
[Column(TypeName = "decimal(18, 6)")]
|
|
public decimal PreviousClose { get; set; }
|
|
|
|
[MaxLength(50)]
|
|
public string TrendState { get; set; } = "Neutral";
|
|
|
|
public DateTime LastUpdatedAt { get; set; } = DateTime.UtcNow;
|
|
}
|