using Managing.Domain.Trades;
using MediatR;

namespace Managing.Application.Trading.Commands
{
    public class ClosePositionCommand : IRequest<Position>
    {
        public ClosePositionCommand(Position position, decimal? executionPrice = null, bool isForBacktest = false)
        {
            Position = position;
            ExecutionPrice = executionPrice;
            IsForBacktest = isForBacktest;
        }

        public Position Position { get; }
        public decimal? ExecutionPrice { get; set; }
        public bool IsForBacktest { get; set; }
    }
}