17 using System.Collections.Generic;
44 public static readonly IReadOnlyDictionary<SecurityType, string>
DefaultMarketMap =
new Dictionary<SecurityType, string>
57 }.ToReadOnlyDictionary();
77 public virtual IReadOnlyDictionary<SecurityType, string>
DefaultMarkets
159 Quantity = (int?) (ticket.Quantity/splitFactor),
160 LimitPrice = ticket.OrderType.IsLimitOrder() ? ticket.Get(OrderField.LimitPrice)*splitFactor : (decimal?) null,
161 StopPrice = ticket.OrderType.IsStopOrder() ? ticket.Get(OrderField.StopPrice)*splitFactor : (decimal?) null,
162 TriggerPrice = ticket.OrderType == OrderType.LimitIfTouched ? ticket.Get(OrderField.TriggerPrice) * splitFactor : (decimal?) null,
163 TrailingAmount = ticket.OrderType == OrderType.TrailingStop && !ticket.Get<bool>(OrderField.TrailingAsPercentage) ? ticket.Get(OrderField.TrailingAmount) * splitFactor : (decimal?) null
179 switch (security.
Type)
224 switch (security.
Type)
254 switch (security.
Type)
295 switch (security.
Type)
319 [Obsolete(
"Flagged deprecated and will remove December 1st 2018")]
338 return security?.
Type switch
379 [Obsolete(
"Flagged deprecated and will remove December 1st 2018")]
395 if (minimumOrderSize !=
null && Math.Abs(orderQuantity) < minimumOrderSize)