17 using System.Collections.Generic;
36 public new static readonly IReadOnlyDictionary<SecurityType, string>
DefaultMarketMap =
new Dictionary<SecurityType, string>
39 }.ToReadOnlyDictionary();
41 private readonly Type[] _supportedTimeInForces =
47 private readonly HashSet<OrderType> _supportedOrderTypes =
new()
116 if (!_supportedOrderTypes.Contains(order.
Type))
125 if (!_supportedTimeInForces.Contains(order.
TimeInForce.GetType()))
135 if (stopMarket !=
null)
137 return IsValidOrderPrices(security,
OrderType.StopMarket, stopMarket.Direction, stopMarket.StopPrice, security.
Price, ref message);
141 if (stopLimit !=
null)
143 return IsValidOrderPrices(security,
OrderType.StopMarket, stopLimit.Direction, stopLimit.StopPrice, stopLimit.LimitPrice, ref message);
182 private static bool IsValidOrderPrices(
214 if (orderDirection ==
OrderDirection.Buy && limitPrice < stopPrice ||
218 Messages.TradingTechnologiesBrokerageModel.InvalidStopLimitOrderLimitPrice);