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/roicai/agents-plugin/roic-api-v2npx skills add roicai/agents-plugin --skill roic-api-v2git clone --depth 1 https://github.com/roicai/agents-pluginWhat 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.00216 | $0.01668 |
| Opus 5 | $0.00108 | $0.00834 |
| Sonnet 5 | $0.00043 | $0.00334 |
| Haiku 4.5 | $0.00022 | $0.00167 |
Grade A, and why
roic-api-v2 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 2d 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.
curl "https://api.roic.ai/v2/fundamental/income-statement/AAPL?period=annual&limit=250&apikey=$ROIC_API_KEY" How it starts
The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.
roic.ai v2 API
Building something new? Use v3 instead. v2 is the legacy public surface and is kept for existing integrations. v3 adds
Authorization: Bearerauth, cursor pagination, and bulk "latest price for every ticker" routes that v2 has no equivalent for. Only stay on v2 when the caller is already on v2, or when they ask for v2 by name.
Basics
- Base URL:
https://api.roic.ai/v2 - Auth: API key in the query string only —
?apikey=<key>. There is no bearer-token or header auth on v2. (?key=is accepted as a legacy alias; preferapikey.) A missing or unknown key returns 401 on every route. - Responses: JSON. Success bodies are a bare array (or a bare object for
single-row routes) — there is no
{data, meta}envelope. Errors are{"error": "..."}with the status on the HTTP response. - Identifiers: every
{identifier}path segment accepts a ticker symbol, CIK, CUSIP, or ISIN interchangeably — resolution is case-insensitive. You do not need a lookup call before requesting data for a known symbol. - Get a key / upgrade: https://roic.ai/pricing
curl "https://api.roic.ai/v2/fundamental/income-statement/AAPL?period=annual&limit=250&apikey=$ROIC_API_KEY"
Endpoint routing
| You need… | Route family | Reference |
|---|---|---|
| Find or list tickers; dump an exchange | /v2/tickers/... |
<references/endpoints.md> |
| Exchanges, sectors, industries, countries | /v2/{exchanges,sectors,industries,countries}/list |
<references/endpoints.md> |
| Company profile, news, logo | /v2/company/... |
<references/endpoints.md> |
| Earnings-call transcripts | /v2/company/earnings-calls/... |
<references/endpoints.md> |
| Daily OHLCV prices, latest price, splits | /v2/stock-prices/..., /v2/stock-splits |
<references/endpoints.md> |
| Statements, ratios, EV / multiples / per-share | /v2/fundamental/... (11 routes) |
<references/fundamentals.md> |
| Plan limits, rate-limit state, 401/403/429 handling | /v2/usage |
<references/plans-and-limits.md> |
| Minimising request count | — | <references/budget-patterns.md> |
What ships with it
4 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.
- 2d ago First seen · 115 lines · 216 tokens per session scan A 02d09ecc58a8
roic-api-v2 is a skill published in the GitHub repository roicai/agents-plugin (2 stars, last pushed 26d ago), licensed MIT. It adds 216 tokens to every session and 1,668 once invoked, about $0.0011 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
dcf-model
Build discounted cash flow valuation workbooks in Excel.
comps-analysis
Build comparable-company valuation workbooks in Excel.
lbo-model
Build leveraged buyout workbooks with IRR/MOIC in Excel.
excel-author
Build auditable financial workbooks headless via openpyxl.
hyperliquid
Hyperliquid market data, account history, trade review.
solana
Query Solana wallets, tokens, txs, and NFTs in USD.