38 lines
981 B
C#
38 lines
981 B
C#
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;
|
|
}
|