Skip to content

docs: IBKR setup guide (API + file upload) for the Account Wizard - #146

Open
tylrcc wants to merge 1 commit into
terranalon:mainfrom
tylrcc:fix/issue-104
Open

tylrcc wants to merge 1 commit into
terranalon:mainfrom
tylrcc:fix/issue-104

Conversation

@tylrcc

@tylrcc tylrcc commented Nov 11, 2026

Copy link
Copy Markdown

Closes #104 (parent #103).

What changed

  • New frontend/src/components/AccountWizard/constants/guides/ibkr.js — an ibkrGuide in exactly the Kraken guide's shape, with two guides:
    • api — "Connect IBKR Flex Query": log into Account Management → Settings > User Settings > API → generate the Flex Web Service Token (60-day expiry, renewal tip) → Reports > Flex Queries > Custom Flex Queries → create an Activity Flex Query with the required sections as a checklist (Open Positions, Trades, Cash Transactions, Transfers, Dividends, Forex Trades, Cash Report, Account Information with only "Date Opened") → save and copy the Query ID → enter Flex Token + Flex Query ID in Finch. Includes the security notes (read-only token, stored encrypted), the issue's data-scope table, limitations (365-day lookback, 60-day token renewal), and the issue's three troubleshooting entries (invalid token / missing sections / empty import).
    • file — "Export from IBKR": run the saved query with the desired date range, download as XML, upload in Finch; troubleshooting covers wrong format (XML only) and partial data (missing sections).
  • guides/index.js — registers ibkr: ibkrGuide in BROKER_GUIDES.

Screenshots

The issue's screenshot checklist is still open, so the steps intentionally carry no screenshot fields — SetupGuidePanel renders steps without one ({step.screenshot && ...}). Paths under /guides/ibkr/... can be dropped in when the captures are taken.

Verification

  • Loaded the guides module with Node: getBrokerGuide('ibkr', 'api') returns 7 steps, getBrokerGuide('ibkr', 'file') returns 5 steps, and getBrokerGuide('kraken', 'api') still resolves.
  • Content cross-checked against the existing /ibkr entry in brokerConfig.js (apiType flex, fields flex_token / flex_query_id, supported format .xml) so the guide text matches what the wizard actually asks for.

Add ibkrGuide in the same format as the existing Kraken guide and register it in BROKER_GUIDES so getBrokerGuide('ibkr', 'api'|'file') resolves in the SetupGuidePanel.

The API guide covers generating the Flex Web Service Token (60-day expiry), creating the Activity Flex Query with the required sections (Open Positions, Trades, Cash Transactions, Transfers, Dividends, Forex Trades, Cash Report, Account Information with only Date Opened), the data scope table, the 365-day lookback limitation, and troubleshooting. The file guide covers running the saved query and uploading the XML export for older history.

Screenshots from the issue checklist are not included yet; the panel renders steps without a screenshot fine, and the paths can be added when the captures exist.

Closes terranalon#104
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.

docs: IBKR setup guide (API + file upload)

1 participant