skillfed

ib-account

ib-account fetches your account summary directly from Interactive Brokers, including net liquidation value, available cash, and buying power. It connects through TWS or IB Gateway running locally and automatically detects whether you're trading paper or live accounts, with fallback retry logic to ensure reliable connections.

ib-account retrieves your Interactive Brokers account balance, cash position, and buying power via local TWS or IB Gateway.

AI-generated summary based on this skill's SKILL.md

299 68 MIT updated by staskh

Install

staskh/trading_skills/ib-account · repository language: Python

git clone https://github.com/staskh/trading_skills
cp -r trading_skills/.claude/skills/ib-account ~/.claude/skills/ib-account
npx skillfed install staskh/trading_skills/ib-account

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

What's my Interactive Brokers account balance?

ib-account retrieves your current account balance directly from Interactive Brokers, displaying your net liquidation value, available cash, and buying power in a single summary. The skill connects through TWS or IB Gateway running locally and automatically detects whether you're trading paper or live accounts.

How much buying power do I have available to trade?

ib-account checks your available buying power by connecting to your Interactive Brokers account via TWS or IB Gateway. It shows your trading capacity alongside your cash position and net liquidation value, helping you understand how much you can deploy in new positions.

Can ib-account show my account summary from Interactive Brokers?

Yes. ib-account displays your complete account summary including net liquidation value, available cash, buying power, and other key metrics. It connects through your local TWS or IB Gateway installation and includes fallback retry logic to ensure reliable data retrieval.

Does ib-account work with multiple Interactive Brokers accounts?

ib-account can manage and monitor multiple Interactive Brokers accounts. It automatically detects whether you're trading paper or live accounts and maintains separate connections for each, allowing you to switch between accounts as needed.

How does ib-account verify my IB connection status?

ib-account includes built-in connection verification that checks whether your Interactive Brokers account is accessible through TWS or IB Gateway. It uses fallback retry logic to ensure reliable connections and will alert you if the connection fails or times out.

SKILL.md

rendered from the published skill — quoted content, verbatim

IB Account

Fetch account summary from Interactive Brokers.

IB Connection

TWS or IB Gateway must be running locally with API enabled: - Paper trading — port 7497 - Live trading — port 7496 - IB_PORT env var — default port when --port is omitted (e.g. IB_PORT=4001 for a Gateway container). Precedence: --port flag > IB_PORT > built-in default. Set it in the shell or a .env file.

Port fallback: If the configured port fails, automatically retry on the other port. If the retry succeeds, save to memory which account type worked (live/paper) and reuse it for all IB skill calls in this and future sessions — until the user explicitly asks for the other account. If both ports fail, ask the user to verify that TWS or IB Gateway is running with API access enabled.

Instructions

> Note: If uv is not installed or pyproject.toml is not found, replace `uv

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 2 files
.claude/skills/ib-account/SKILL.md
.claude/skills/ib-account/scripts/account.py

Related skills

Tags

broker-connectivity account-metrics portfolio-overview trading-readiness liquidity-check tws-gateway multi-account-support real-time-balances