klhztrader/KLHZ.Trader.Core.Contracts/Messaging/Dtos/TradeCommand.cs

17 lines
628 B
C#

using KLHZ.Trader.Core.Contracts.Messaging.Dtos.Enums;
using KLHZ.Trader.Core.Contracts.Messaging.Dtos.Interfaces;
namespace KLHZ.Trader.Core.Contracts.Messaging.Dtos
{
public class TradeCommand : ITradeCommand
{
public Guid CommandId { get; init; } = Guid.NewGuid();
public TradeCommandType CommandType { get; init; }
public required string Figi { get; init; }
public decimal? RecomendPrice { get; init; }
public long Count { get; init; }
public required string AccountId { get; init; }
public bool EnableMargin { get; init; } = true;
}
}