Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/oh-rid/claude-code-plugin-ib/ib-connectornpx skills add oh-rid/claude-code-plugin-ib --skill ib-connectorgit clone --depth 1 https://github.com/oh-rid/claude-code-plugin-ibWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/oh-rid/claude-code-plugin-ib/ib-connector)<a href="https://agentmods.dev/skills/oh-rid/claude-code-plugin-ib/ib-connector"><img src="https://agentmods.dev/badge/skills/oh-rid/claude-code-plugin-ib/ib-connector.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00137 | $0.06240 |
| Opus 5 | $0.00068 | $0.03120 |
| Sonnet 5 | $0.00027 | $0.01248 |
| Haiku 4.5 | $0.00014 | $0.00624 |
Grade A, and why
ib-connector scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
All requests use `curl -sk` (self-signed cert, silent). How it starts
The opening of the file, as written. The whole thing — 570 lines — stays where its author put it; the contents beside it link to each section on GitHub.
IB Client Portal Gateway — Live Data Reference
Official Documentation
- Swagger (full endpoint list): https://interactivebrokers.github.io/cpwebapi/ (requires JS)
- IBKR Campus API hub: https://www.interactivebrokers.com/campus/ibkr-api-page/cpapi-v1/
- Institutional CP API PDF: https://www.interactivebrokers.com/download/CP_API.pdf
- Web API Changelog: https://www.interactivebrokers.com/campus/ibkr-api-page/web-api-changelog/
Base URL for all requests: https://localhost:5000/v1/api
All requests use curl -sk (self-signed cert, silent).
Placeholder convention: ${ACCOUNT_ID} in curl examples is your IB account
identifier (looks like U1234567 or DU1234567 for paper). Fetch it once with
curl -sk https://localhost:5000/v1/api/portfolio/accounts and either export it
(export ACCOUNT_ID=U1234567) or substitute it into the URLs.
SAFETY — NO ORDERS
This plugin is for read-only market data only.
NEVER call these endpoints:
POST /iserver/account/{id}/order— places a live orderPOST /iserver/account/{id}/orders— places multiple ordersDELETE /iserver/account/{id}/order/{orderId}— cancels orderPOST /iserver/reply/{replyid}— confirms order execution
Orders through CP Gateway go straight to market after a 2-step API confirmation (no UI dialog like TWS Desktop). There is no undo.
If the user asks to place an order, tell them to use TWS Desktop or IB mobile app.
1. Session Management
Check session (ALWAYS do first)
curl -sk https://localhost:5000/v1/api/tickle
Response includes iserver.authStatus.authenticated (true/false).
"authenticated":true— proceed"authenticated":false— tell user: "Open https://localhost:5000 in browser and log in again"- Connection refused — Gateway not running, tell user: run
/ib-start
Auth status (detailed)
curl -sk -X POST https://localhost:5000/v1/api/iserver/auth/status
Returns: authenticated, competing, connected, serverInfo.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 570 lines · 137 tokens per session scan A 934b50d168f5
ib-connector is a skill published in the GitHub repository oh-rid/claude-code-plugin-ib (5 stars, last pushed 3mo ago), licensed MIT. It adds 137 tokens to every session and 6,240 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
sector-rotation
行业轮动分析——申万行业景气度评分、行业动量排名、产业链传导、估值/盈利/资金流多维比较框架.
strategy-pivot-designer
Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.
twitter-reader
Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…
chenhao-limit-up
Use when evaluating A-share limit-up (涨停板) setups through Chen Hao's sentiment and momentum lens: market emotion cycles, board strength, follow-through, and short-term aggressive momentum trading.
trading-risk-gate
Unified pre-trade safety gate: Ruin check (Law #1), ergodicity audit, and win-rate dominance validation. Absorbs: ergodicity-check, law-of-ruin, win-rate-dominance.
vectorbt
High-performance vectorized backtesting with parameter optimization, portfolio simulation, and rich performance metrics.