v2.6.7
Hotfix: IBKR Flex Web Service sync
Fixes IBKR broker sync and credential validation failing with ErrorCode 1003 ("Statement not available") and intermittent connection issues against IBKR's Flex Web Service.
Changes
- Migrated to IBKR's current Flex Web Service endpoint. Switched from the legacy
gdcdyn.interactivebrokers.com/Universal/servlet/FlexStatementServiceURL to the currentndcdyn.interactivebrokers.com/AccountManagement/FlexWebServicehost with/SendRequestand/GetStatementpaths, per IBKR's current Flex Web Service v3 documentation. - Added required
User-Agentheader. IBKR's documentation requires a client-identifying User-Agent; requests now sendTradeTally/<version>. - Stopped forcing a 365-day date window on every Flex request. Previously TradeTally would pass
fd/tdoverrides to IBKR for every sync, which conflicted with Flex Queries configured for a different period and caused IBKR to return ErrorCode 1003 even when the credentials were valid. The Flex Query's own period setting (configured in IBKR) now determines what data IBKR returns, and TradeTally filters trades to the user's requested date range locally after parsing.
User impact
- If your IBKR broker sync was failing with "Statement not available" or you couldn't add a new IBKR connection due to validation errors, update to v2.6.7 and try again.
- The period your Flex Query returns is now controlled by the Period setting on the Flex Query itself in IBKR (Performance & Reports -> Flex Queries). If you want a wider lookback, configure the query accordingly.
Upgrade
- Docker users:
docker pull potentialmidas/tradetally:2.6.7(or:latest). - Native installs:
git pullon the v2.6.7 tag and rebuild.