Skip to content

fix(docs): correct IBKR TWS default API ports (7496 live, 7497 paper)#138

Open
denghuinow wants to merge 1 commit into
brokermr810:mainfrom
denghuinow:fix/ibkr-tws-port-docs
Open

fix(docs): correct IBKR TWS default API ports (7496 live, 7497 paper)#138
denghuinow wants to merge 1 commit into
brokermr810:mainfrom
denghuinow:fix/ibkr-tws-port-docs

Conversation

@denghuinow

@denghuinow denghuinow commented Jun 4, 2026

Copy link
Copy Markdown

Summary

  • Align IBKR TWS socket port documentation with Interactive Brokers official defaults: live 7496, paper 7497.
  • Gateway ports (4001/4002) were already correct; only TWS rows were swapped in our docs.
  • Updates IBKR_TRADING_GUIDE_EN.md, OpenAPI, and code comments. API default port remains 7497 (IB TWS paper default).

References

Test plan

  • Connect TWS Paper with port 7497 via /broker-accounts or POST /api/ibkr/connect
  • Connect TWS Live with port 7496 when using a live session
  • Confirm strategy ibkr_port matches TWS API → Settings socket port

Align comments and trading guide with IB defaults (7496 live, 7497 paper)
and link to the official TWS API initial setup documentation.

Co-authored-by: Cursor <cursoragent@cursor.com>
@denghuinow denghuinow force-pushed the fix/ibkr-tws-port-docs branch from f0af173 to b624a54 Compare June 11, 2026 07:20
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