Entry router for Python quantitative finance: names the right library and flags where the model's training prior is stale. TRIGGER - read this FIRST when a quant task names no specific sub-domain, when asked "which library should I use" for anything financial, or when a plan spans several of data, backtest, risk and execution. Also read it before importing any finance package whose status you are assuming from memory - several widely used ones are dead, relicensed, or have flipped a default since training. SKIP when the task already names its own domain - go straight to market-data-sourcing, backtesting-engines, broker-execution-apis, portfolio-and-risk, factor-and-timeseries-research, china-ashare-data or crypto-data-and-execution rather than routing through here.
Ships in fin-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Your training prior on this ecosystem is stale in ways that silently produce wrong numbers rather than errors. Read §1 before writing code. Then jump from §2 to the one skill that owns your task; do not try to answer from memory.
Every fact in this library carries a verification date. Where a fact is likely to have moved,
re-check the primary source listed in shared/live-sources.md rather than trusting the cache.
(verified 2026-09-03 against the PyPI JSON API and each project's own repo)
| Area | Stale prior you probably hold | Current reality |
|---|---|---|
| TA-Lib install | "needs the C library compiled by hand; no Windows wheels" | Solved. 0.7.1 ships 54 wheels incl. cp311-win_amd64. pip install TA-Lib just works. |
| QuantLib install | "a nightmare, build from source" | Solved. 1.43 ships cp39-abi3-win_amd64; one wheel covers 3.9+. No sdist at all. |
| IBKR client | ib_insync | Dead (last release 2023-07-02). Successor is ib_async (2.1.0, 2025-12-08). |
| TD Ameritrade | tda-api | Dead (2022-06). TDA absorbed into Schwab → schwab-py. |
| Alpaca | alpaca-trade-api | Deprecated (2024-01). → alpaca-py. |
pandas_datareader | pdr.get_data_yahoo(...) | Removed in 0.11.0. Yahoo, Stooq, Tiingo, IEX, Quandl, AlphaVantage, Morningstar, Options — all deleted. It is now a macro-only library (FRED, Fama-French, OECD, Eurostat, EconDB, BoC). Every equity tutorial using it is broken. |
yfinance adjustment | yf.download() returns raw OHLC + Adj Close | auto_adjust=True since 1.0. OHLC are already adjusted and there is no Adj Close column — df['Adj Close'] raises KeyError. |
backtrader | "a standard choice" | Unmaintained (last release 2023-04-19) and GPL-3.0. |
mlfinlab | "the AFML reference implementation" | Gone. Not installable from PyPI; the GitHub source is stubbed (every function body is pass); proprietary all-rights-reserved. Use RiskLabAI + purgedcv. |
pandas-ta | "the pandas-native TA-Lib" | See signal-construction — there is a supply-chain caution on the current PyPI package. Maintained successor: pandas-ta-classic. |
openbb | MIT | Relicensed to AGPL-3.0 on 2024-05-14. Network copyleft. |
backtesting.py | permissive | AGPL-3.0. |
PyBroker / vectorbt | open source | Both are Apache-2.0 + Commons Clause — you may not sell a product or service deriving substantially from them. Not OSI-open-source. |
nautilus_trader | "works everywhere" | Requires Python >=3.12,<3.15. Will not install on 3.11. |
fracdiff | the fractional-differencing package | Archived 2023-12; requires_python <3.10. Unusable on modern Python. |
| Microsoft Qlib CN data | qlib_data --region cn downloads it | Official dataset disabled ("more restrict data security policy"). Use the community mirror chenditc/investment_data. |
| Alpha Vantage free tier | 500 requests/day | 25 requests/day. Effectively a demo. |
polars | "a fast Rust dataframe library" | The polars wheel is now an empty 865 KB shim (py3-none-any, no compiled code) that hard-depends on polars-runtime-32. A lockfile listing only polars does not pin the engine. |
polars.join_asof | "pandas is the one that silently misjoins" | Inverted. pandas.merge_asof raises on unsorted keys; polars.join_asof does NOT check sortedness when by= is given — silently wrong rows. |
SEC XBRL frames API | "a clean cross-section" | Not point-in-time and cannot be made so — no filed field. 53% of its CY2023 values come from filings made in 2026. Never backtest on it. |
Written in the words you would actually use. -> is a literal path to read next.
"get stock prices" / "download OHLCV" / "which data source" / yfinance / polygon / databento / EODHD / tiingo / survivorship-free universe / delisted tickers / trading calendar / split & dividend adjustment
-> market-data-sourcing skill. Start with its plugins/fin-core/skills/market-data-sourcing/references/_decision-table.md.
"as-of join" / merge_asof / "join quotes to trades" / Parquet / polars / DuckDB / ArcticDB / "store tick data" / "my timestamps are wrong" / "too big for memory" / "different numbers when I parallelise"
-> market-data-engineering skill. Its as-of-join section is where look-ahead most often enters a pipeline.
"fundamentals" / 10-K / 10-Q / 8-K / EDGAR / XBRL / "point-in-time financials" / "as-of-date fundamentals" / earnings dates / CIK / restatements
-> fundamental-and-macro-data skill, §SEC. Read its restatement and acceptanceDateTime sections before writing any event study.
"macro data" / FRED / CPI / GDP / NFP / "revised data" / vintage / ALFRED / World Bank / IMF / Eurostat
-> fundamental-and-macro-data skill, §Macro. GDP is revised for years — plugins/fin-core/skills/fundamental-and-macro-data/references/fredapi.md covers the vintage API and its three bugs.
"backtest this" / "which backtesting library" / vectorbt / zipline / nautilus / LEAN / freqtrade / "my backtest looks too good"
-> backtesting-engines skill. If the backtest looks too good, go to research-integrity-guards first.
"connect to IBKR" / TWS / ib_async / place an order / paper trading / Alpaca / Schwab / Tastytrade / "make sure I don't send a live order"
-> broker-execution-apis skill. Its order-safety patterns are mandatory reading before any code that can transmit an order.
"RSI" / "MACD" / "moving average" / TA-Lib / "which indicator library" / "does this indicator repaint" / streaming indicators
-> signal-construction skill.
"is my factor any good" / IC / alphalens / quantile returns / Fama-French / Fama-MacBeth / event study / abnormal returns / CAR
-> factor-and-timeseries-research skill.
"forecast returns" / ARIMA / GARCH / volatility model / Nixtla / sktime / darts / Prophet / time-series foundation model
-> factor-and-timeseries-research skill, §Forecasting. For volatility specifically, plugins/fin-core/skills/factor-and-timeseries-research/references/arch.md.
"optimize portfolio weights" / mean-variance / Black-Litterman / risk parity / HRP / CVaR / efficient frontier / covariance shrinkage
-> portfolio-and-risk skill, §Optimization.
"Sharpe ratio" / drawdown / tearsheet / quantstats / pyfolio / "annualize returns" / attribution / VaR
-> portfolio-and-risk skill, §Analytics. Read its metric-correctness audit — several popular libraries compute these wrong.
"is this result real" / overfitting / "I tried 200 strategies" / deflated Sharpe / PBO / walk-forward / purged CV / p-hacking / "how many trials"
-> backtest-validation skill. This is the single highest-value skill in the library.
"price an option" / Greeks / implied vol / vol surface / SABR / QuantLib / yield curve / bond pricing / swap
-> derivatives-pricing skill.
"look-ahead bias" / "survivorship bias" / "data leakage" / "point-in-time" / "is my backtest honest" / "review my research design"
-> research-integrity-guards skill. Also load this whenever you are about to report a number.
A-share / 沪深 / akshare / tushare / baostock / 复权 / 涨跌停 / T+1 / vnpy / qlib / 北交所
-> fin-china plugin: china-ashare-data, china-trading-stack.
Hong Kong / Taiwan / Japan / Korea / India / SGX / ASX / HKEX / TWSE / KRX / NSE / Stock Connect / J-Quants / 港股 / 台股
-> fin-asia plugin: asia-pacific-markets. Its exchange_calendars defect list applies to US work too.
crypto / ccxt / Binance / perpetuals / funding rate / freqtrade / hummingbot
-> fin-crypto plugin: crypto-data-and-execution.
reinforcement learning / RL agent / FinRL / gym / gymnasium / stable-baselines3 / TensorTrade / LSTM / Transformer for returns / "does deep learning beat linear"
-> fin-llm plugin: rl-and-ml-trading. FinRL does not install; the evidence section is the point.
alternative data / satellite / credit card / web traffic / ESG / Numerai / WallStreetBets / news sentiment sources
-> plugins/fin-core/skills/market-data-sourcing/references/alternative-data.md
"LLM trading agent" / TradingAgents / FinGPT / FinRobot / RD-Agent / "does AI trading work" / finance MCP server
-> fin-llm plugin: llm-finance-agents (read its evidence section before building anything), finance-mcp-servers.
Most library detail lives inline in each skill's own tables, not in separate files. Some skills
additionally carry references/*.md for material too long to inline — a decision table, a
methodology, a single deep library note. catalog/index.json lists exactly which, generated from
frontmatter, so check there rather than assuming a file exists.
When the table above does not name your library, grep the skill bodies first:
# Which skill covers a given package?
grep -ril "riskfolio" plugins/*/skills/*/SKILL.md
# What does it get wrong? (traps are marked with a siren in every skill)
grep -i -B2 -A6 "quantstats" plugins/fin-core/skills/portfolio-and-risk/SKILL.md
# Only some skills have reference files; list them before reading
ls plugins/*/skills/*/references/
backtest-validation.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
18 skills in this plugin
/backtesting-enginesChoose a backtesting engine and know what it silently models wrong. TRIGGER - "backtest this", backtest a crossover or a moving-average strategy, simulate a strategy, walk-forward, parameter sweep, "test this trading idea"; comparing or choosing backtest frameworks; vectorbt, backtesting.py, backtrader, zipline, PyBroker, bt, nautilus_trader, LEAN, freqtrade, jesse; how an engine models fills, slippage, commissions; what slippage to assume, partial fills, margin, shorting or delistings; taking a strategy from backtest to live; "my backtest looks too good"; "works in backtest but loses money live". Several popular engines fill at the signal's own bar close by default. SKIP for judging whether a finished result is real (backtest-validation) for A-share rules (china-trading-stack), for crypto funding and perpetuals (crypto-data-and-execution), for options, which need assignment and settlement no engine here models (options-backtesting), and for measuring fills you already have (execution-cost-analysis)./backtest-overfittingDecide whether an edge that passed every mechanical check is still just the best of N tries. TRIGGER - PBO, probability of backtest overfitting, CSCV, combinatorially symmetric cross validation, logit of the out-of-sample rank; minimum backtest length, MinBTL, "how much history do I need", "how many parameter sets can I try on N years of data"; a grid search, Optuna or AutoML picked a winner and it decayed; "in-sample Sharpe 2, live Sharpe 0", "the best parameter set stopped working", "is this peak on my parameter surface real"; pypbo, RiskLabAI CSCV. SKIP for the deflated and probabilistic Sharpe ratios, the trial ledger and SPA/StepM/MCS against a benchmark (backtest-validation); for family-wise error and false-discovery control over a whole research programme (multiple-testing-ledger); for the purged and combinatorial CV splitters themselves (lib-purgedcv); for the mechanical leakage gates that come first (research-integrity-guards); and for regime coverage of the test window (regime-detection)./backtest-validationDecide whether a result survives the number of things you tried. TRIGGER - "I tried N strategies or parameters and the best one..."; overfitting, p-hacking, data snooping, "is this result real", "is this statistically significant"; deflated Sharpe, DSR, PSR, the trial ledger; White's Reality Check, Hansen SPA, StepM, model confidence set, arch.bootstrap; purged or combinatorial cross-validation, embargo, walk-forward, "cross validation on time series without leaking"; a grid search, hyperopt or AutoML picked a winner; triple-barrier labeling, meta-labeling, fractional differentiation, mlfinlab. Load whenever a Sharpe ratio is about to be offered as evidence for trading. SKIP for plain performance metrics - Sharpe, Sortino, CAGR, drawdown (portfolio-and-risk); for PBO, CSCV and the minimum backtest length (backtest-overfitting); and for Bonferroni, Holm, Benjamini-Hochberg or Benjamini-Yekutieli over a ledger of trials (multiple-testing-ledger). The deflated and probabilistic Sharpe ratios are computed HERE./broker-execution-apisConnect to a broker and place orders without accidentally trading live money. TRIGGER - connect to Interactive Brokers, TWS, IB Gateway, ib_async, ib_insync, ibapi, Alpaca, Schwab, schwab-py, Tastytrade, Tradier or Robinhood; place, modify or cancel an order; read positions or balances; set up paper trading; order types, time-in-force, bracket or OCO orders, client order ID; FIX, quickfix, simplefix; "make sure I don't send a live order"; a broker connection being refused. Load before any code that can transmit an order. SKIP for crypto exchanges and ccxt (crypto-data-and-execution), and for vnpy, CTP, QMT or any Chinese broker gateway (china-trading-stack). This skill answers TWS/Gateway port and connection failures on its own - the fin-libraries deep dive is optional and most installs will not have it./combining-data-sourcesCombine information of DIFFERENT kinds into one research view whose every number can be traced back to what was knowable when. TRIGGER - joining prices to fundamentals, earnings or a macro series; building a signal from a filing plus a price; merging two vendors into one series; "which vendor do I trust"; combine_first / fillna / bfill across sources; assembling a company dossier, profile or research view from several places; a field that must carry its provenance; "when did this number become knowable"; period_end vs filed vs available; a ticker that changed company mid-sample; filling a ResultCard's data block. SKIP for the mechanics of ONE as-of join (safe_asof, in market-data-engineering); for reconciling two price series from two vendors (reconcile_sources, in market-data-sourcing); for auditing a finished backtest (research-integrity-guards); and for resolving a ticker to a permanent id (security-master-and-symbology)./derivatives-pricingChoose a derivatives pricing library and get its Greek units and conventions right. TRIGGER - option pricing, implied volatility, IV, Greeks, delta, gamma, vega, theta, rho; which pricing library, exotics coverage; QuantLib, vollib, py_vollib, financepy, rateslib, optionlab; option chains. Greek scaling differs by 100x and 365x between the three common libraries, and one popular fixed-income package is not open source. SKIP for option lifecycle events - assignment, pin risk, expiry - live or backtested, and for historical option chains and vendors (options-backtesting). SKIP for the models themselves - implementing one (option-pricing-models), fitting a smile (implied-vol-surface), building a curve (term-structure-models), bond accrued and the 30/360 family (bond-conventions-and-accrued), duration and DV01 (duration-convexity-and-dv01), and projection-versus-discount choice on a swap (ois-discounting-and-multi-curve)./fin-core:quant-stack-routerfrom fin-core
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin fin-core