Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Esonhughv2.2.1MITIn 2 marketplaces
Produces read-only Markdown and HTML reports on your Interactive Brokers trading history, covering P&L, cost basis and portfolio structure. Live pulls need a Flex token and query ID; local CSV or XML exports also work, and China resident tax estimates are included.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
2 marketplaces, most starred first
ibkr, interactive-brokers, trading-analysis, portfolio, pnl, cost-basis, flex-query, china-tax ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Proxy URL (optional)proxy
HTTP or SOCKS5 proxy for IBKR API requests, e.g. socks5://127.0.0.1:7980. Leave empty to auto-detect from ALL_PROXY / HTTPS_PROXY environment variables.
stringOptionaldefault
Flex Query IDibkr_query_id
Numeric ID of your Activity Flex Query. To create one: Account Management → Performance & Reports → Flex Queries → Create New Activity Flex Query. Required sections: Trades, Cash Transactions, Open Positions, Account Information. Set output format to XML. After saving, the Query ID appears in the query list.
stringRequired
Flex Tokenibkr_flex_token
IBKR Flex Web Service token (read-only reporting API key). To obtain: log into Account Management (https://www.interactivebrokers.com/sso/Login) → Performance & Reports → Flex Queries → Manage Flex Web Service → Create or copy your token. This token only grants access to reporting endpoints — it cannot place orders or modify your account.
SensitivestringRequired
A Claude Code plugin for analyzing Interactive Brokers trading history — read-only, zero risk.
This plugin connects to your IBKR account (via the read-only Flex Web Service API) or reads local CSV/XML exports, then generates comprehensive trading analysis reports covering:
| Dimension | Details |
|---|---|
| Trading Patterns | Frequency, holding periods, time-of-day patterns, win rate, profit factor |
| P&L Performance | Realized P&L, equity curve, Sharpe ratio, max drawdown, monthly returns |
| Portfolio Structure | Asset allocation, sector concentration, long/short ratio, position sizing |
| Cost Basis (3 methods) | Breakeven/保本价 (Futu method), FIFO, LIFO — side-by-side comparison |
| Fees & Cash Flow | Commissions, interest, dividends, financing costs, fee-to-PnL ratio |
| Cash & Currency | Multi-currency balances, FX conversion rates (1 USD = X FCY), liquidity ratio |
| Trading Style Profile | Auto-generated qualitative summary (day/swing/position trader, bias, risk) |
| Risk Assessment | Scored 0-100 across 6 dimensions with specific warnings |
| Price Charts | Historical price data with buy/sell trade markers overlaid |
include_realized_pnl, realized_pnl_asset_types, and china_iit_property_transfer_rate./ibkr-trade-analyzer:portfolio --ff forces ibkr_fetch_data(mode="flex", force_refresh=true) before calculating holdings.--symbol AMZN,BRK B generates detailed trade history with cost evolution per methoddiluted_cost analyzer section — new --analyzers diluted_cost option; included in default "all" runFirst, add this repository as a marketplace source:
/plugin marketplace add Esonhugh/Marketplace
Then install the plugin:
/plugin install ibkr-trade-analyzer
Or with the claude CLI:
claude plugin marketplace add Esonhugh/Marketplace
claude plugin install ibkr-trade-analyzer
Clone the entire marketplace repo and point Claude Code to the plugin directory:
git clone https://github.com/Esonhugh/Marketplace.git
claude --plugin-dir ./Marketplace/plugins/ibkr-trade-analyzer
Or clone just the plugin into your plugins directory:
git clone --depth 1 --filter=blob:none --sparse \
https://github.com/Esonhugh/Marketplace.git /tmp/marketplace
cd /tmp/marketplace && git sparse-checkout set plugins/ibkr-trade-analyzer
cp -r plugins/ibkr-trade-analyzer ~/.claude/plugins/ibkr-trade-analyzer
Once installed, simply tell Claude:
Analyze my IBKR trading history
The assistant will guide you through:
The plugin also exposes command-style workflows for common reviews:
7-day copy clicks
npx claudepluginhub esonhugh/ibkr-trade-analyzer --plugin ibkr-trade-analyzerBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground