using Managing.Infrastructure.Databases.MongoDb.Attributes;
using Managing.Infrastructure.Databases.MongoDb.Configurations;
using MongoDB.Bson.Serialization.Attributes;
using static Managing.Common.Enums;

namespace Managing.Infrastructure.Databases.MongoDb.Collections
{
    [BsonCollection("Trades")]
    public class TradeDto : Document
    {
        [BsonDateTimeOptions]
        public DateTime Date { get; set; }
        public TradeDirection Direction { get; set; }
        public TradeStatus Status { get; set; }
        public TradeType TradeType { get; set; }
        public Ticker Ticker { get; set; }
        public decimal Fee { get; set; }
        public decimal Quantity { get; set; }
        public decimal Price { get; set; }
        public decimal Leverage { get; set; }
        public string ExchangeOrderId { get; set; }
        public string Message { get; set; }
    }
}
