Claude-skill-registry ibkr-gateway-python
Use when working in mm-ibkr-gateway to access market data, account summary, positions, PnL, or orders directly in Python via ibkr_core. Covers connecting with IBKRClient, using market/account/order helpers, and safety rules for preview, place, cancel, and status.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/ibkr-gateway-python" ~/.claude/skills/majiayu000-claude-skill-registry-ibkr-gateway-python && rm -rf "$T"
manifest:
skills/data/ibkr-gateway-python/SKILL.mdsource content
IBKR Gateway Python
Overview
Use ibkr_core modules in Python scripts or notebooks to fetch market data, read account data, and manage orders with safety rails.
Workflow
-
Confirm safety mode and connectivity.
- Ensure IBKR Gateway or TWS is running on the configured host/port.
- Keep
andTRADING_MODE=paper
unless explicitly asked to enable live trading.ORDERS_ENABLED=false - For offline testing, set
and useIBKR_MODE=simulation
fromget_ibkr_client
.ibkr_core.simulation
-
Create and connect a client.
- Use
orIBKRClient(mode="paper")
(respectsget_ibkr_client()
).IBKR_MODE - Call
andclient.connect()
.client.disconnect()
- Use
-
Use market data, account, and order helpers.
- Market data:
,get_quote
,get_quotes
,get_historical_bars
,get_streaming_quoteget_quote_with_mode - Account:
,get_account_summary
,get_positions
,get_pnl
,get_account_statuslist_managed_accounts - Orders:
,preview_order
,place_order
,get_order_status
,cancel_order
,get_open_orderscancel_order_set - Pass
when targeting a specific account; omit to use the first managed account.account_id
- Market data:
-
Prefer preview-first order flow.
- Call
beforepreview_order
.place_order - If
,ORDERS_ENABLED=false
returnsplace_order
.SIMULATED
- Call
References
for import lists and code examples.references/python-usage.md
andibkr_core/models.py
for field names and order types.docs/SCHEMAS.md
,notebooks/02_market_data.ipynb
, andnotebooks/03_account_status.ipynb
for end-to-end workflows.notebooks/04_orders.ipynb