By Esonhugh
Analyze Interactive Brokers trading history read-only, producing reports on P&L, portfolio allocation, trade patterns, cost basis, and fee analysis. Supports Flex Query API and local CSV/XML import. Includes tax estimate calculations for China residents.
Run targeted IBKR analysis sections with optional period and asset-type filters
Analyze IBKR cash balances, currency exposure, FX history, and neutral review categories
Generate an annual China resident overseas investment tax evidence review and informational calculation from IBKR Flex data
Review IBKR portfolio and tax evidence for year-end China resident overseas investment tax planning considerations
Calculate IBKR portfolio holdings, allocation, concentration, cash, and position sizing
This skill should be used when the user asks about China tax-resident individual overseas brokerage evidence workflows, especially IBKR Flex dividends, Form 1042-S reconciliation, U.S. withholding tax, foreign tax credit, RMB FX evidence, 美股分红预扣税, 境外所得抵免, IBKR 年度报税工具, 1042-S 怎么用于中国个税, 境外股票收益报税, and neutral year-end evidence readiness for China tax filing. Use it as an official-source workflow reference and informational estimate guide, not final filing advice.
This skill should be used when the user asks to analyze Interactive Brokers (IBKR) trading history, Flex Query data, activity statements, or local IBKR CSV/XML exports. Use it for account summaries, portfolio/holding review, position sizing, cash and FX exposure review, P&L, win rate, Sharpe ratio, max drawdown, commissions, fees, cost basis, breakeven / 保本价 / 摊薄成本, FIFO/LIFO comparison, report export, 交易复盘, 账户摘要, 持仓分析, 盈亏分析, and neutral 现金/外汇敞口 review. It provides read-only analysis only and must not place trades, convert currency, or give investment/tax advice.
Admin access level
Server config contains admin-level keywords
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
This plugin requires configuration values that are prompted when the plugin is enabled. Sensitive values are stored in your system keychain.
proxyHTTP 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.
${user_config.proxy}ibkr_query_idNumeric 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.
${user_config.ibkr_query_id}ibkr_flex_tokenIBKR 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.
${user_config.ibkr_flex_token}Requires secrets
Requires secrets
Needs API keys or credentials to function
Needs API keys or credentials to function
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:
Stealth browser automation skill using Pydoll, specialized in bypassing Cloudflare WAF, Turnstile CAPTCHA, and other bot detection systems.
Comprehensive macOS offensive security skill covering system internals, binary analysis, shellcode (x64/ARM64), dylib injection, app-runtime injection (Electron/Chromium/NIB), Mach IPC, XPC attacks, Gatekeeper/AMFI/MACF bypass, sandbox escapes, TCC bypasses, persistence mechanisms, IOKit/DriverKit, MDM exploitation, keychain attacks, and full penetration testing workflows.
npx claudepluginhub esonhugh/ibkr-trade-analyzer --plugin ibkr-trade-analyzerSkill for interacting with the Trading 212 API - portfolio management, order placement, position tracking, and historical data analysis
Quantitative analysis, algorithmic trading strategies, financial modeling, portfolio risk management, and backtesting
TastyTrade brokerage integration for account management and trading
Backtest trading strategies with historical data, performance metrics, and risk analysis
Use Alva Agent for investing workflows: ask market questions with live financial context, set alerts, build or remix Playbooks, connect accounts, and backtest strategies on Alva Cloud.
67 trading, DeFi, and quantitative finance Agent Skills. Market data APIs, on-chain analysis, backtesting, risk management, execution, tax compliance, and more.