Skip to content

Fix commission report currency mismatch for untradeable instruments#1596

Merged
bug-or-feature merged 1 commit intopst-group:developfrom
craigmediaservices:fix/commission-currency-mismatch
Feb 6, 2026
Merged

Fix commission report currency mismatch for untradeable instruments#1596
bug-or-feature merged 1 commit intopst-group:developfrom
craigmediaservices:fix/commission-currency-mismatch

Conversation

@craigmediaservices
Copy link

IB returns empty commissionCurrency for instruments that can't be traded (regulatory restrictions, permissions, delisted). This caused erroneous "Currency doesn't match" errors in the commission report.

Filter out trading-restricted and stale instruments before querying broker for commission data. Also handle empty DataFrame when all instruments are filtered out.

Fixes #1525

IB returns empty commissionCurrency for instruments that can't be traded
(regulatory restrictions, permissions, delisted). This caused erroneous
"Currency doesn't match" errors in the commission report.

Filter out trading-restricted and stale instruments before querying
broker for commission data. Also handle empty DataFrame when all
instruments are filtered out.

Fixes pst-group#1525

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bug-or-feature bug-or-feature merged commit b6e5276 into pst-group:develop Feb 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Currency Not Matching

3 participants