You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
InteractiveBrokersFeeModel: US equity minimum overrides the 1% maximum per order, and the cap is 0.5% #10015
InteractiveBrokersFeeModel charges US equity orders the way IBKR Pro Fixed does: USD 0.005 per share, minimum USD 1.00 per order, maximum 1% of trade value, and when the calculated maximum is below the minimum, the maximum is charged.
From the IBKR US stock commissions page: "Minimum per order USD 1.00 … Maximum per order 1% of Trade Value", and footnote: "In the event the calculated maximum per order is less than the minimum per order, the maximum per order will be assessed. For example, a purchase to buy 10 shares of a $0.20 stock will be charged $0.02".
Actual Behavior
Common/Orders/Fees/InteractiveBrokersFeeModel.cs:
line 150 builds the US equity fee with maximumFeeRate: 0.005m (0.5%) instead of 1%;
lines 165-173 apply the cap only in the else branch of the minimum check, so the USD 1.00 minimum always wins over the cap.
Resulting fees:
Order
Lean today
IBKR Pro Fixed
Buy 10 shares at $0.20 (IBKR's own example)
$1.00
$0.02
Buy 1,000 shares at $0.80
$4.00 (0.5% cap)
$5.00 (1% cap doesn't bind)
Buy 1 share at $100
$1.00
$1.00
Buy 1,000 shares at $100
$5.00
$5.00
Orders worth less than $100 and stocks under $1 are charged the wrong commission in every backtest that uses the default IB fee model.
Potential Solution
Set the US rate to 0.01m and clamp once: Math.Min(Math.Max(feePerShare * quantity, minimumFee), maximumPerOrder). Both have to go together: with the reorder alone, the existing USAEquityMinimumFeeInUSD case (1 share at $100) would drop to $0.50. I have a PR ready with the fix and tests.
Reproducing the Problem
InteractiveBrokersFeeModel().GetOrderFee for a market order of 10 shares of a security priced at $0.20 returns $1.00.
Draft fix in #10129, building on #10016's commits (author kept), with the unit tests that change needed and a docs update (QuantConnect/Documentation#2895). Other fee models with the same rule: AlphaStreamsFeeModel (Common/Orders/Fees/AlphaStreamsFeeModel.cs) has its own copy of the US equity fee with the same 0.5% cap and minimum-wins branch. It is left out of this change.
Activity
quantconnect-kronos commentedon Nov 13, 2026
Draft fix in #10129, building on #10016's commits (author kept), with the unit tests that change needed and a docs update (QuantConnect/Documentation#2895). Other fee models with the same rule:
AlphaStreamsFeeModel(Common/Orders/Fees/AlphaStreamsFeeModel.cs) has its own copy of the US equity fee with the same 0.5% cap and minimum-wins branch. It is left out of this change.