Loading...
Loading...
Interactive Brokers — global stocks/forex/futures via a LOCAL TWS/IB Gateway, not cloud. Covers stocks, ETFs, forex, futures; account, positions, orders, quotes, history, order placement. Use when the user wants to check or trade an Interactive Brokers account (e.g. "IBKR positions", "buy 10 AAPL on IBKR paper", "my IB account net liq"). Requires a running TWS / IB Gateway — NOT a cloud key.
npx skill4agent add starchild-ai-agent/official-skills ibkr127.0.0.1IBKR_HOSTIBKR_PORTstatusDU| Variable | Required | Notes |
|---|---|---|
| no | default |
| no | overrides the profile default (7497 paper / 7496 live) |
| no | API client id, default |
| no | pin a specific account code (e.g. |
DUU--profile paperpip install ib_asyncpaperpython skills/ibkr/scripts/ibkr_cli.py status # checks socket + lists managed accounts
python skills/ibkr/scripts/ibkr_cli.py account
python skills/ibkr/scripts/ibkr_cli.py positions
python skills/ibkr/scripts/ibkr_cli.py orders [--executions]
python skills/ibkr/scripts/ibkr_cli.py quote --symbol AAPL
python skills/ibkr/scripts/ibkr_cli.py history --symbol AAPL --duration "30 D" --bar-size "1 day"
# place (paper): qty in units; market or limit; contract defaults STK/SMART/USD
python skills/ibkr/scripts/ibkr_cli.py place --symbol AAPL --side buy --qty 10 --type limit --limit-price 180 --tif day
python skills/ibkr/scripts/ibkr_cli.py cancel --order-id <numeric-id>
# live (real money): TWS on live port + --confirm-live
python skills/ibkr/scripts/ibkr_cli.py --profile live --confirm-live place --symbol AAPL --side buy --qty 1--exchange--currency--sec-type--sec-type CASH --symbol EUR --currency USD --exchange IDEALPROhistory--duration--bar-size--confirm-livecancelIBKR_CLIENT_ID