broker-sync/tests/providers
Viktor Barzin e83c5a0a8f ibkr: add Flex provider — Trade/Cash mapping + OpenPositions snapshot
Maps Trades (BUY/SELL) and CashTransactions (DIVIDEND, TAX, INTEREST, FEE,
DEPOSIT, WITHDRAWAL) from an IBKR Flex Activity Query to broker-sync
Activity objects. Adds canonical_symbol helper (LSE → .L suffix when
exchange=LSE* or currency=GBP). Exposes OpenPositions for the
reconciliation step that runs at the CLI layer.

Guards against wrong-account writes by checking
stmt.accountId == IBKR_ACCOUNT_ID_UPSTREAM before yielding any activities.

13 unit tests cover all the mappings + the mismatch guard.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 22:28:35 +00:00
..
parsers schwab: detect vest-confirmation emails + emit VestEvent 2026-04-19 18:27:58 +00:00
__init__.py Add Trading212 ticker normalisation 2026-04-17 19:29:23 +00:00
test_checkpoint.py Add per-account cursor Checkpoint helper 2026-04-17 19:30:20 +00:00
test_fidelity_planviewer.py tests: type the FidelityHolding factory list to satisfy CI mypy 2026-05-22 14:54:06 +00:00
test_finance_mysql.py Add finance_mysql provider + CLI for historical backfill 2026-04-17 22:38:21 +00:00
test_ibkr.py ibkr: add Flex provider — Trade/Cash mapping + OpenPositions snapshot 2026-05-26 22:28:35 +00:00
test_imap.py test: drop redundant quotes on MonkeyPatch annotation 2026-05-26 21:20:12 +00:00
test_invest_engine.py Add InvestEngineProvider — Bearer-token HTTP client 2026-04-17 21:52:26 +00:00
test_trading212.py Wire T212 pagination, retries, and click<8.2 pin 2026-04-17 19:45:23 +00:00
test_trading212_ticker.py Add Trading212 ticker normalisation 2026-04-17 19:29:23 +00:00