feat(engine): add FinlyticEngine microservice with trade lifecycle, AI reasoning gate, composite scoring, and unit tests
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user