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