Пример #1
0
 public Calculator(BrokerageFeeRate brokerageFeeRate, ClearingFeeRate clearingFeeRate,
                   StampDutyRate stampDutyRate, SalesServiceTaxRate taxRate)
 {
     this.brokerageFeeRate = brokerageFeeRate;
     this.clearingFeeRate  = clearingFeeRate;
     this.stampDutyRate    = stampDutyRate;
     this.taxRate          = taxRate;
 }
Пример #2
0
 public static decimal ClearingFee(ClearingFeeRate feeRate, decimal amount) =>
 Math.Min(feeRate.ClearingRate * amount, feeRate.MaximumFee);