22 using System.Collections.Generic;
31 private const decimal _defaultLeverage = 3;
32 private const decimal _defaultFutureLeverage = 25;
119 var quantityIsValid =
true;
124 quantityIsValid &= IsOrderSizeLargeEnough(limitOrder.LimitPrice);
125 price = limitOrder.LimitPrice;
137 quantityIsValid &= IsOrderSizeLargeEnough(price);
146 price = stopLimitOrder.LimitPrice;
147 quantityIsValid &= IsOrderSizeLargeEnough(stopLimitOrder.LimitPrice);
148 if (!quantityIsValid)
154 quantityIsValid &= IsOrderSizeLargeEnough(stopLimitOrder.StopPrice);
155 price = stopLimitOrder.StopPrice;
173 if (!quantityIsValid)
188 return base.CanSubmitOrder(security, order, out message);
190 bool IsOrderSizeLargeEnough(decimal price) =>
202 return map.ToReadOnlyDictionary();