Чистка кода
parent
9554b988e3
commit
e2726586e5
|
@ -77,8 +77,8 @@ namespace KLHZ.Trader.Core.Exchange.Services
|
|||
var command = await _commands.Reader.ReadAsync();
|
||||
try
|
||||
{
|
||||
if (command.CommandType == Contracts.Messaging.Dtos.Enums.TradeCommandType.OpenLong
|
||||
|| command.CommandType == Contracts.Messaging.Dtos.Enums.TradeCommandType.OpenShort)
|
||||
if (command.CommandType == TradeCommandType.OpenLong
|
||||
|| command.CommandType == TradeCommandType.OpenShort)
|
||||
{
|
||||
var fakeMessage = new NewPriceMessage() { Figi = command.Figi, Ticker = "", Count = command.Count, Direction = 1, IsHistoricalData = false, Time = DateTime.UtcNow, Price = command.RecomendPrice ?? 0m };
|
||||
var positionType = command.CommandType == TradeCommandType.OpenLong ? PositionType.Long : PositionType.Short;
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace KLHZ.Trader.Core.Exchange.Utils
|
|||
}
|
||||
internal static Dictionary<TradingEvent, decimal> GetInitDict(decimal initValue)
|
||||
{
|
||||
var values = System.Enum.GetValues<TradingEvent>();
|
||||
var values = Enum.GetValues<TradingEvent>();
|
||||
return values.ToDictionary(v => v, v => initValue);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue