feat(bot): add FinlyticBot autonomous paper trading microservice with Alpaca Markets API integration

This commit is contained in:
2026-08-17 16:32:47 +02:00
parent 3972507cb0
commit 5497cc5de7
21 changed files with 1924 additions and 14 deletions
+37
View File
@@ -0,0 +1,37 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace FinlyticBot.Entities;
[Table("BotAuditLogs")]
public class BotAuditLogEntity
{
[Key]
public Guid Id { get; set; } = Guid.NewGuid();
[Required]
[MaxLength(100)]
public string TradeId { get; set; } = string.Empty;
[Required]
[MaxLength(30)]
public string Symbol { get; set; } = string.Empty;
[Required]
[MaxLength(50)]
public string Action { get; set; } = string.Empty; // "Evaluated", "Rejected", "OrderPlaced", "OrderFilled", "OrderClosed", "EmergencyStopped"
public bool IsAccepted { get; set; }
[MaxLength(500)]
public string? Reason { get; set; }
[Column(TypeName = "decimal(18,4)")]
public decimal? CalculatedSize { get; set; }
[Column(TypeName = "decimal(18,4)")]
public decimal? AccountEquity { get; set; }
public DateTime Timestamp { get; set; } = DateTime.UtcNow;
}