Skip to content

fix: correct Flex Query API hostname and endpoint paths#22

Merged
NitayRabi merged 1 commit intocode-rabi:masterfrom
proschu2:fix-flex-query-hostname
Mar 25, 2026
Merged

fix: correct Flex Query API hostname and endpoint paths#22
NitayRabi merged 1 commit intocode-rabi:masterfrom
proschu2:fix-flex-query-hostname

Conversation

@proschu2
Copy link
Copy Markdown
Contributor

Problem

The Flex Query client was using incorrect hostname and API paths, causing DNS resolution errors:

  • Wrong hostname: gdcdyn.interactivebrokers.com (does not exist)
  • Wrong base path: /Universal/servlet
  • Wrong endpoints: /FlexStatementService.SendRequest, /FlexStatementService.GetStatement

Error: EAI_AGAIN gdcdyn.interactivebrokers.com

Solution

Updated to match IBKR Flex Web Service v3 API documentation:

  • Fixed hostname: ndcdyn.interactivebrokers.com
  • Fixed base path: /AccountManagement/FlexWebService
  • Fixed endpoints: /SendRequest, /GetStatement

Correct API Format

https://ndcdyn.interactivebrokers.com/AccountManagement/FlexWebService/SendRequest?t={Token}&q={QueryID}&v=3

Reference

@NitayRabi
Copy link
Copy Markdown
Contributor

Thanks for the fix! The test failures were due to the tests using the old URLs. I've created #23 with the complete fix including updated tests.

@NitayRabi NitayRabi merged commit 994e67d into code-rabi:master Mar 25, 2026
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.

2 participants