41 private readonly decimal _forexCommissionRate;
49 _forexCommissionRate = forexCommissionRate;
60 var order = parameters.
Order;
65 switch (security.Type)
68 var totalOrderValue = order.GetValue(security);
69 feeResult = Math.Abs(_forexCommissionRate * totalOrderValue);
74 var equityFee = ComputeEquityFee(order);
75 feeResult = equityFee.Amount;
76 feeCurrency = equityFee.Currency;
81 var optionsFee = ComputeOptionFee(order);
82 feeResult = optionsFee.Amount;
83 feeCurrency = optionsFee.Currency;
119 private static CashAmount ComputeOptionFee(Order order)
121 return order.Symbol.ID.Market
switch