38 private readonly decimal _makerFee;
39 private readonly decimal _takerFee;
60 var order = parameters.
Order;
64 if(security.Symbol.ID.SecurityType ==
SecurityType.CryptoFuture)
66 var positionValue = security.Holdings.GetQuantityValue(order.AbsoluteQuantity, security.Price);
67 return new OrderFee(
new CashAmount(positionValue.Amount * fee, positionValue.Cash.Symbol));
78 var unitPrice = order.Direction ==
OrderDirection.Buy ? security.AskPrice : security.BidPrice;
85 unitPrice *= security.SymbolProperties.ContractMultiplier;
88 unitPrice * order.AbsoluteQuantity * fee,
89 security.QuoteCurrency.Symbol));
99 return GetFee(order, _makerFee, _takerFee);
105 protected static decimal
GetFee(
Order order, decimal makerFee, decimal takerFee)