using Managing.Domain.Users;
using System.ComponentModel.DataAnnotations;
using static Managing.Common.Enums;

namespace Managing.Domain.Accounts;

public class Account
{
    [Required] public string Name { get; set; }
    [Required] public TradingExchanges Exchange { get; set; }
    [Required] public AccountType Type { get; set; }
    public string Key { get; set; }
    public string Secret { get; set; }
    public User User { get; set; }
    public List<Balance> Balances { get; set; }

    public bool IsPrivyWallet => Type == AccountType.Privy;
}