20 using System.Collections.Generic;
32 private readonly HashSet<SecurityType> _supportSecurityTypes =
new(
46 private readonly HashSet<OrderType> _supportOrderTypes =
new(
65 throw new NotSupportedException($
"Eze brokerage can only be used with a {AccountType.Margin} account type");
93 if(ezeOrderProperties ==
null)
96 $
"Order properties should be of type '{nameof(EzeOrderProperties)}'");
99 if (
string.IsNullOrEmpty(ezeOrderProperties.Account))
102 "Required order properties Account not set properly.");
106 if (
string.IsNullOrEmpty(ezeOrderProperties.Route))
109 "Required order properties Route not set properly.");
113 if (!_supportSecurityTypes.Contains(security.
Type))
121 if (!_supportOrderTypes.Contains(order.
Type))
132 $
"Order Quantity must be Integer, but provided {order.AbsoluteQuantity}.");
137 return base.CanSubmitOrder(security, order, out message);