34 lines
935 B
C#
34 lines
935 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace FinlyticBot.Database.Entities;
|
|
|
|
[Table("bot_portfolio_snapshots")]
|
|
public class BotPortfolioSnapshotEntity
|
|
{
|
|
[Key]
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
|
|
public DateTime SnapshotDateUtc { get; set; } = DateTime.UtcNow;
|
|
|
|
[Column(TypeName = "decimal(18,4)")]
|
|
public decimal TotalEquityEur { get; set; }
|
|
|
|
[Column(TypeName = "decimal(18,4)")]
|
|
public decimal CashEur { get; set; }
|
|
|
|
public int OpenPositionsCount { get; set; }
|
|
|
|
[Column(TypeName = "decimal(18,4)")]
|
|
public decimal DailyRealizedPnlEur { get; set; }
|
|
|
|
[Column(TypeName = "decimal(18,4)")]
|
|
public decimal TotalUnrealizedPnlEur { get; set; }
|
|
|
|
[Column(TypeName = "decimal(6,2)")]
|
|
public decimal? WinRatePercent { get; set; }
|
|
|
|
public DateTime CreatedAtUtc { get; set; } = DateTime.UtcNow;
|
|
}
|