$npx skillfedfor your agent

ib-trades-history

Pull trade executions directly from your Interactive Brokers account via live API (recent ~7 days) or FlexReport (full history). Filter by account, symbol, or date range, and get back execution details with per-symbol summaries including commissions and realized P&L.

IB Trades History retrieves your recent or full trade executions from Interactive Brokers with flexible filtering.

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

★ 299  68 MITupdated by staskh

Decision gist · record as of 2026-07-20

IB Trades History retrieves your recent or full trade executions from Interactive Brokers with flexible filtering. Pull trade executions directly from your Interactive Brokers account via live API (recent ~7 days) or FlexReport (full history). Filter by account, symbol, or date range, and get back execution details with per-symbol summaries including commissions and realized P&L.

manual: git clone https://github.com/staskh/trading_skills → cp -r trading_skills/.claude/skills/ib-trades-history ~/.claude/skills/ib-trades-history
.claude/skills/ib-trades-history/SKILL.md · version 88ab7453

Use it when

  • Yes.
  • ib-trades-history lets you filter and export trades by symbol.

Verify before relying

Read SKILL.md below before installing (2 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

staskh/trading_skills/ib-trades-history · repository language: Python

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

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

How do I pull my trade history from ib-trades-history?

ib-trades-history retrieves trade executions directly from your Interactive Brokers account. You can access recent trades (~7 days) via the live IB API, or use FlexReport to pull your full historical trade data. The skill filters results by account, symbol, or date range and returns execution details with per-symbol summaries including commissions and realized P&L.

Can ib-trades-history get full trading history beyond 7 days?

Yes. ib-trades-history accesses full trade history beyond the 7-day API limit via Interactive Brokers' FlexReport feature. This allows you to retrieve historical trades across any date range you specify, making it ideal for reconciliation, tax reporting, or long-term portfolio analysis.

How do I fetch my AAPL trades from ib-trades-history?

ib-trades-history lets you filter and export trades by symbol. Simply specify AAPL (or any other ticker) along with your desired date range and account, and the skill returns all matching executions with full transaction details, commissions, and realized P&L for that symbol.

What connection setup does ib-trades-history require?

ib-trades-history connects to Interactive Brokers via the IB API, which runs through either TWS (Trader Workstation) or IB Gateway. You'll need to configure your IB API connection settings in one of these applications before the skill can retrieve your trade data.

Can ib-trades-history export trades from multiple accounts?

Yes. ib-trades-history supports filtering and exporting trades across multiple Interactive Brokers accounts. You can reconcile portfolio activity or analyze transaction details by specifying which accounts to include in your query.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

IB Trades History

Fetch trade executions 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.

For full trade history beyond ~7

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

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

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Retrieve recent or historical trade executions from Interactive Brokers”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

ib-account
by staskh · staskh/trading_skills

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.

MITfor claude-codeupdated Jul 2026
★ 299repo stars
ib-portfolio
by staskh · staskh/trading_skills

IB Portfolio connects to your Interactive Brokers account to display current positions, quantities, average costs, and market values. It works with TWS or IB Gateway running locally and automatically handles paper and live trading ports. The skill returns structured position data including unrealized profit/loss for each holding.

MITfor claude-codeupdated Jul 2026
★ 299repo stars
ib-report-delta-adjusted-notional-exposure
by staskh · staskh/trading_skills

This skill computes delta-adjusted notional exposure across all your IBKR accounts, using Black-Scholes to price option deltas and reporting directional risk by account and underlying. It connects to TWS or IB Gateway, processes positions including equities, futures, and options, and generates a markdown report with summary tables and top exposures.

MITfor claude-codeupdated Jul 2026
★ 299repo stars
Ibkr
by Starchild-ai-agent · Starchild-ai-agent/official-skills

Ibkr bridges your AI agent to Interactive Brokers through a local Trader Workstation or IB Gateway connection—no cloud keys required. Check positions, place orders, pull quotes and history across stocks, ETFs, forex, and futures on your own machine or networked gateway. Requires TWS/Gateway running and API socket enabled; paper trading available for safe testing.

no license declared → metadata onlyupdated Jul 2026
★ 18repo stars
ib-create-consolidated-report
by staskh · staskh/trading_skills

This skill merges multiple IBRK trade exports from a directory into consolidated reports, grouping trades by underlying symbol, strike, date, and position direction. It outputs both markdown and CSV formats with aggregated quantities, proceeds, commissions, and realized P&L.

MITfor claude-codeupdated Jul 2026
★ 299repo stars
ib-portfolio-action-report
by staskh · staskh/trading_skills

Analyze all positions in your Interactive Brokers accounts with traffic-light risk indicators and earnings exposure. The skill gathers portfolio data, fetches earnings dates, and delivers technical analysis in a prioritized markdown report highlighting positions requiring immediate attention.

MITfor claude-codeupdated Jul 2026
★ 299repo stars

More skills ib-collar (MIT) · ib-find-short-roll (MIT) · ib-trailing-stop (MIT) · ib-pmcc-advisor (MIT) · ib-stop-loss (MIT)

Tags
trade-execution-historyportfolio-reconciliationflex-report-integrationmulti-account-retrievaldate-range-filteringtws-gateway-connectiontransaction-exportsymbol-based-lookupapi-data-sourcehistorical-performance-analysis