using System.ComponentModel;

namespace PolyTraderSharp.Models
{
    public class DashboardRow
    {
        [Browsable(false)]
        public int AccountId { get; set; }

        [Browsable(false)]
        public bool IsDemo { get; set; }

        [Browsable(false)]
        public bool IsActive { get; set; }
        
        [DisplayName("Account")]
        public string AccountName { get; set; } = string.Empty;

        [DisplayName("Balance Gesamt")]
        public decimal TotalBalance { get; set; }

        [DisplayName("Balance verfügbar")]
        public decimal AvailableBalance { get; set; }

        [DisplayName("Balance in Positionen")]
        public decimal PositionBalance { get; set; }

        [DisplayName("Offene Trades")]
        public int OpenTradesCount { get; set; }

        [DisplayName("Trades (24h)")]
        public int ClosedTrades24h { get; set; }

        [DisplayName("P&L (24h)")]
        public decimal Pnl24h { get; set; }

        [DisplayName("Winrate (24h)")]
        public string Winrate24h { get; set; } = "0%";

        [DisplayName("Trades (7d)")]
        public int ClosedTrades7d { get; set; }

        [DisplayName("P&L (7d)")]
        public decimal Pnl7d { get; set; }

        [DisplayName("Winrate (7d)")]
        public string Winrate7d { get; set; } = "0%";
    }
}
