connect
Establish connection to TWS or IB Gateway to use account management, trading, and market data tools. Must be called first.
Instructions
Connect to TWS or IB Gateway. Must be called before using other tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | TWS/Gateway host | 127.0.0.1 |
| port | No | Port (7496 for TWS, 4001 for Gateway) | |
| client_id | No | Client ID | |
| readonly | No | Read-only mode |