Skip to content
Back to skills

Ib Account

ASecurity

Get account summary from Interactive Brokers including cash balance, buying power, and account value. Use when user asks about their account, balance, buying power, or available cash. Requires TWS or IB Gateway running locally.

  • 373 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
datapythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add staskh/trading_skills --skill ib-account --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ib Account?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ib Account
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/staskh-ib-account/badge)](https://www.skillsdirectory.com/skills/staskh-ib-account)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ib-account
description: Get account summary from Interactive Brokers including cash balance, buying power, and account value. Use when user asks about their account, balance, buying power, or available cash. Requires TWS or IB Gateway running locally.
dependencies: ["trading-skills"]
---

# IB Account

Fetch account summary from Interactive Brokers.

## Prerequisites

User must have TWS or IB Gateway running locally with API enabled:
- Paper trading: port 7497
- Live trading: port 7496

## Instructions

> **Note:** If `uv` is not installed or `pyproject.toml` is not found, replace `uv run python` with `python` in all commands below.

```bash
uv run python scripts/account.py [--port PORT] [--account ACCOUNT_ID] [--all-accounts]
```

## Arguments

- `--port` - IB port (default: 7496 for live trading)
- `--account` - Specific account ID to fetch
- `--all-accounts` - Fetch summaries for all managed accounts

**Default behavior** (no flags): fetches the first managed account only.
**Always use `--all-accounts`** unless the user asks for a specific account.

## Output

Returns JSON with:
- `connected` - Whether connection succeeded
- `accounts` - List of account summaries, each with account ID, net liquidation, cash, buying power, etc.

If not connected, explain that TWS/Gateway needs to be running.

## Dependencies

- `ib-async`


## Timezone

All timestamps and time-based calculations must use the `America/New_York` timezone. All JSON output must include `generated_at` (NY time string) and `data_delay` fields.

Files in this skill

  • SKILL.md1.5 KB
  • scripts/account.py1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.