public QBCommissionProvider SetProduct(string product, double pershare = 0, double percent = 0)
 {
     ProductCommissions[product] = new InstrumentCommission(pershare, percent);
     return(this);
 }
        private double GetCommission(ExecutionReport report, ref InstrumentCommission ic)
        {
            var num = ic.Pershare * report.LastQty + ic.Percent * report.Instrument.Factor * report.LastQty * report.LastPx;

            return(Math.Max(num, MinCommission));
        }