← Search

IB Portfolio Positions
Trading 🧪 Install ran in our test sandbox · Nov 11, 2026 📌 Pinned version: commit b71a74f
Install test only, on the date shown. This does not guarantee the code is safe.
🔎 Install prompt analysis · 2026-10-13 : runs commands · installs packages
⚙ Needs: an Interactive Brokers account…

IB Portfolio Positions

Your Interactive Brokers positions read straight from TWS or IB Gateway on your own machine: quantity, average cost, market value, and unrealized profit and loss.

⚠️ Trading warning / Avertissement trading : informational only, not investment advice. Connected to the live port, this skill reads a real brokerage account holding real money. Curated by Skill Harbor: your own Interactive Brokers positions, read on your own machine. The skill connects to Trader Workstation or IB Gateway running locally with the API enabled and returns your current positions as structured JSON: symbol, quantity, average cost, market value, and unrealized profit and loss. It defaults to the paper-trading port (7497), accepts the live port (7496) or an IB_PORT environment variable, and if the configured port fails it retries the other one and remembers which account type answered. Once installed, asking what you own and what it is worth right now becomes a chat question instead of a platform session. It runs as a Python script (scripts/portfolio.py, needs the ib-async library) from the staskh/trading_skills repo. From the staskh/trading_skills repository (MIT). Honest caveats: know which account you are connected to before trusting the numbers (the automatic port fallback makes this worth double-checking, because paper and live balances look alike in a table); as documented, the skill fetches and reports positions and places no orders; your IB login stays inside TWS or Gateway on your machine, and account credentials never belong in a chat. Skill Harbor never reviews the code, review it yourself before use.
At a glance
What
Your Interactive Brokers positions read straight from TWS or IB Gateway on your own machine: quantity, average cost, market value, and unrealized profit and loss.
Cost
Free
Needs
an Interactive Brokers account, TWS or IB Gateway installed and running locally with API access enabled, and the repo cloned (git clone https://github.com/staskh/trading_skills); the skill needs the ib-async library, installed through the repo project, and its scripts run with uv (uv run python) or plain python.
Level
Intermediate — an Interactive Brokers account…
Install
Copy the installer prompt below into your Muse — your agent does the rest.

Version:

Quick answer

IB Portfolio Positions is a free Muse skill for your Interactive Brokers positions read straight from TWS or IB Gateway on your own machine. It reports quantity, average cost, market value, and unrealized profit and loss. It is informational only, not investment advice: connected to the live port, it reads a real brokerage account holding real money.

⌁

Install

Copy the install package below, then paste it into Muse🧪 Install ran in our test sandbox · Nov 11, 2026📌 Pinned version: commit b71a74f

Pinned version: install the code at commit b71a74fe327b12e314fc96618d7131dca4638ab3 exactly (Skill Harbor tested this version). Do not substitute a newer version. If this commit is unreachable, stop and tell me. Use "IB Portfolio Positions" with your Muse. ⚠️ REAL BROKERAGE ACCOUNT, READ THIS FIRST: this skill connects to Interactive Brokers through TWS or IB Gateway running on YOUR machine with the API enabled. You log in inside TWS or Gateway yourself; never paste account credentials, passwords, or account numbers into a chat. The default port 7497 is a PAPER account with simulated money; port 7496 is your LIVE account with real money. Start on paper, and know that if the configured port fails the skill retries the other port, so always confirm which account type answered before trusting the numbers. Prerequisites: an Interactive Brokers account, TWS or IB Gateway installed and running locally with API access enabled, and the repo cloned (git clone https://github.com/staskh/trading_skills); the skill needs the ib-async library, installed through the repo project, and its scripts run with uv (uv run python) or plain python. Then, before anything else, run: git checkout b71a74fe327b12e314fc96618d7131dca4638ab3 (the pinned, tested commit). 1. Open the skill: https://raw.githubusercontent.com/staskh/trading_skills/b71a74fe327b12e314fc96618d7131dca4638ab3/.claude/skills/ib-portfolio/SKILL.md and copy the full SKILL.md text. 2. Paste it into a chat with Muse and add: "Connect to my IB Gateway on the paper port and show my current positions: symbol, quantity, average cost, market value, and unrealized profit and loss. Tell me which port and account type answered." 3. Before using any figure, confirm the account type in the answer matches the account you meant to inspect; paper and live positions are formatted identically. Tip: set IB_PORT in a .env file to your usual setup so the paper versus live choice is deliberate, not typed from memory. Safety: a skill is plain-text instructions; it runs nothing by itself. As documented this skill fetches and reports positions and places no orders. This is informational only, not investment advice, and your IB credentials stay in your local gateway, never in a chat.

🔒 Security, provenance and what this touches
🧭 What this touches
  • It can run commands on your Muse’s computer.
  • It can download and install software packages.
Install prompt analysis · 2026-10-13
🔒 Security and provenance
📌 Pinned version: commit b71a74f · 2026-10-13
🧪 Install ran in our test sandbox · Nov 11, 2026
👁 Observed during the install test · Nov 11, 2026 : files.pythonhosted.org, pypi.org
🔎 Install prompt analysis · 2026-10-13 : runs commands · installs packages
What the scan found — excerpts from the install prompt
  • runs commands — Prerequisites: an Interactive Brokers account, TWS or IB Gateway installed and running locally with API access · Then, before anything else, run: git checkout b71a74fe327b12e314fc96618d7131dca4638ab3 (the pinned, tested com · Prérequis : un compte Interactive Brokers, TWS ou IB Gateway installé et en cours d'exécution localement avec
  • installs packages — Prerequisites: an Interactive Brokers account, TWS or IB Gateway installed and running locally with API access · Prérequis : un compte Interactive Brokers, TWS ou IB Gateway installé et en cours d'exécution localement avec
🔎 Last checked · Nov 22, 2026 : no change detected in the files linked by this install prompt
Skill Harbor never reviews the code of a listed skill. These are dated facts about the install prompt and our install test, not a safety certification. Review a skill yourself before you install it. How we verify
Wanna be extra careful?

The install prompt below already includes the vetting steps: your agent follows the community checklist before installing anything with executable code. Want more?

How to check a skill before installing →

✓

Verification certificate

Dated facts about what was checked for this listing, and how. This is not a safety certification.

Pinned version
b71a74f · 2026-10-13
Sandbox install test
Install ran in our test sandbox · Nov 11, 2026 · Observed during the install test: files.pythonhosted.org, pypi.org
Creator identity
Not verified
Fingerprint watch
Last checked · Nov 22, 2026 : no change detected in the files linked by this install prompt
Install prompt analysis
2026-10-13 : runs commands · installs packages

Skill Harbor never reviews the code of a listed skill. These are dated facts about the install prompt and our install test, not a safety certification. Review a skill yourself before you install it. How we verify

?

Questions

How do I install a skill?

Every product page includes a copy-paste install prompt. Paste it into your Muse and it sets the skill up for you — no manual configuration.

Where does my money go?

Straight to the seller. Skill Harbor never processes payments: checkout happens on the seller’s own page, usually Stripe.

What does the ✓ next to a creator’s name mean?

It means we confirmed the identity of the person behind the listing. It says nothing about the code itself — always check a skill before installing it.