ib-portfolio

Fetch current portfolio positions from Interactive Brokers.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ib-portfolio" with this command: npx skills add staskh/trading_skills/staskh-trading-skills-ib-portfolio

IB Portfolio

Fetch current portfolio positions 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.

uv run python scripts/portfolio.py [--port PORT]

Arguments

  • --port

  • IB port (default: 7496 for live trading)

  • --account

  • Specific IB account ID (optional, defaults to first account)

Output

Returns JSON with:

  • connected

  • Whether connection succeeded

  • positions

  • Array of positions with symbol, quantity, avg_cost, market_value, unrealized_pnl

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

Dependencies

  • ib-async

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

fundamentals

No summary provided by upstream source.

Repository SourceNeeds Review
General

news-sentiment

No summary provided by upstream source.

Repository SourceNeeds Review
General

ib-account

No summary provided by upstream source.

Repository SourceNeeds Review
General

risk-assessment

No summary provided by upstream source.

Repository SourceNeeds Review