Files
Finlytic/FinlyticTechnicals/Entities/FtaDetectedPatternEntity.cs
T

56 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace FinlyticTechnicals.Entities;
[Table("fta_detected_patterns")]
public class FtaDetectedPatternEntity
{
[Key]
public Guid Id { get; set; } = Guid.NewGuid();
[Required]
[MaxLength(20)]
public string Isin { get; set; } = string.Empty;
[MaxLength(10)]
public string Timeframe { get; set; } = "15m";
[Required]
[MaxLength(50)]
public string PatternType { get; set; } = string.Empty;
[MaxLength(30)]
public string Category { get; set; } = string.Empty;
[MaxLength(20)]
public string Bias { get; set; } = "Neutral";
[MaxLength(100)]
public string Name { get; set; } = string.Empty;
[Column(TypeName = "decimal(18,4)")]
public decimal KeyPriceLevel { get; set; }
[Column(TypeName = "decimal(18,4)")]
public decimal UpperBoundary { get; set; }
[Column(TypeName = "decimal(18,4)")]
public decimal LowerBoundary { get; set; }
[Column(TypeName = "decimal(18,4)")]
public decimal InvalidationLevel { get; set; }
[Column(TypeName = "decimal(6,2)")]
public decimal QualityScore { get; set; }
public string Description { get; set; } = string.Empty;
public Dictionary<string, object>? ExtraData { get; set; }
[Required]
public DateTime DetectedAtUtc { get; set; }
}