Skip to content

v2.6.7

Choose a tag to compare

@GeneBO98 GeneBO98 released this 14 May 15:55

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/FlexStatementService URL to the current ndcdyn.interactivebrokers.com/AccountManagement/FlexWebService host with /SendRequest and /GetStatement paths, per IBKR's current Flex Web Service v3 documentation.
  • Added required User-Agent header. IBKR's documentation requires a client-identifying User-Agent; requests now send TradeTally/<version>.
  • Stopped forcing a 365-day date window on every Flex request. Previously TradeTally would pass fd/td overrides 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 pull on the v2.6.7 tag and rebuild.