feat(engine): add FinlyticEngine microservice with trade lifecycle, AI reasoning gate, composite scoring, and unit tests

This commit is contained in:
2026-08-24 21:37:05 +02:00
parent a4959658a2
commit 5c95dd182c
49 changed files with 7709 additions and 0 deletions
@@ -0,0 +1,33 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace FinlyticEngine.Database.Entities;
[Table("engine_trade_fills")]
public class EngineTradeFillEntity
{
[Key]
public Guid Id { get; set; } = Guid.NewGuid();
[Required]
public Guid TradeId { get; set; }
[ForeignKey(nameof(TradeId))]
public EngineTradeEntity Trade { get; set; } = null!;
[Required]
public DateTime ExecutedAtUtc { get; set; } = DateTime.UtcNow;
[Column(TypeName = "decimal(18,4)")]
public decimal Price { get; set; }
[Column(TypeName = "decimal(18,4)")]
public decimal Quantity { get; set; }
[Column(TypeName = "decimal(18,4)")]
public decimal Fee { get; set; }
[MaxLength(500)]
public string? Note { get; set; }
}