Prices financial instruments in MATLAB using the Financial Instruments Toolbox, routing to Monte Carlo, FFT/numerical integration, or interest-rate tree references. Supports models like Black-Scholes, Heston, Hull-White, and RoughBergomi for options, bonds, and Greeks.
Ships in computational-finance. 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.
Read when SKILL.md points to them.
Price financial instruments in MATLAB using the Financial Instruments Toolbox. Route to the correct numerical pricing method based on the user's request, then follow the method-specific reference for implementation details.
Identify the pricing method from the user's request and read the corresponding reference:
| Method | Reference | When to Use |
|---|---|---|
| Monte Carlo (MC) | references/monte-carlo.md | Simulation-based pricing: path-dependent options, exotic options, Interest Rate (IR) derivatives via MC, rough volatility |
| FFT / FRFT / Numerical Integration | references/ni-fft.md | Fast pricing: European vanilla options under Heston/Bates/Merton via characteristic functions |
| Interest Rate Trees | references/embedded-bond-tree.md | Callable/puttable fixed-rate bonds with Hull-White (HW), Black-Karasinski (BK), Black-Derman-Toy (BDT), Cox-Ingersoll-Ross (CIR) tree models |
Read exactly one reference (and any relevant sub-references) that best matches based on these rules:
User mentions a specific pricer:
AssetMonteCarlo, RoughVolMonteCarlo, IRMonteCarlo -> references/monte-carlo.mdFFT, NumericalIntegration -> references/ni-fft.mdIRTree -> references/embedded-bond-tree.mdUser mentions a specific numerical method and associated concepts:
references/monte-carlo.mdreferences/ni-fft.mdreferences/embedded-bond-tree.mdUser mentions instrument type without a method:
references/monte-carlo.mdreferences/ni-fft.mdreferences/embedded-bond-tree.mdreferences/monte-carlo.mdUser mentions model name without a method:
references/ni-fft.mdreferences/monte-carlo.mdreferences/embedded-bond-tree.mdreferences/monte-carlo.mdreferences/monte-carlo.mdAmbiguous:
references/ni-fft.md (faster, more accurate for European vanilla)references/monte-carlo.mdreferences/embedded-bond-tree.mdAll three methods share these conventions:
finpricer/fininstrument/finmodel/ratecurve objects (modern OO API) over legacy functions"DiscountCurve", not positional argumentsdatetime for dates (not datenum)price as a variable name — it shadows the price function; prefer p, or capitalized Priceprice() when Greeks or tree data are needed: [p, pr] = price(...)Best practice: Check MATLAB documentation (doc <functionName>, or help <functionName>, etc.) via the MATLAB MCP server before writing code.
| Mistake | Correct |
|---|---|
finpricer("MonteCarlo", ...) | finpricer("AssetMonteCarlo", ...) or finpricer("IRMonteCarlo", ...) |
finpricer("HWMonteCarlo", ...) | finpricer("IRMonteCarlo", ...) with a HullWhite model |
| Mixing pricer families (e.g., FFT pricer for Asian option) | FFT/NI only works for European vanilla; use AssetMonteCarlo for exotics |
Using datenum | Always use datetime |
| Forgetting second output for Greeks | [p, pr] = price(pricer, inst, "delta") — Greeks are in pr.Results |
discount(rc, dates) | discountfactors(rc, dates) — ratecurve uses discountfactors(), not discount() |
Copyright 2026 The MathWorks, Inc.
manifest.yaml (opens in a new tab)references/embedded-bond-tree.md (opens in a new tab)references/monte-carlo.md (opens in a new tab)references/monte-carlo/asset-monte-carlo.md (opens in a new tab)references/monte-carlo/ir-monte-carlo.md (opens in a new tab)references/ni-fft.md (opens in a new tab)references/ni-fft/bates-legacy-api.md (opens in a new tab)references/ni-fft/heston-legacy-api.md (opens in a new tab)references/ni-fft/legacy-api-shared.md (opens in a new tab)references/ni-fft/merton-legacy-api.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/computational-finance:matlab-price-instrumentfrom computational-finance
npx claudepluginhub matlab/matlab-agentic-toolkit --plugin computational-finance5 skills in this plugin
/matlab-access-datafeedConnect to Bloomberg, FRED, Haver Analytics, LSEG Datastream, NOAA Climate Data Online, or US government agencies (BEA, BLS, Census, EIA) from MATLAB and retrieve data. Covers market data (bloomberg/blp/bloombergHypermedia), economic data (fredrs, haver/haverdirect/haverview), historical financial data (datastreamws), weather/climate data (@noaa from GitHub), and government data (usbea/usbls/uscensus/useia from GitHub).
/matlab-optimize-portfolioFormulate and solve portfolio optimization problems in MATLAB. Routes to the Financial Toolbox Portfolio object for mean-variance (Markowitz), minimum- variance, target-return, maximum Sharpe ratio, and efficient frontier problems with bounds, budget, group, turnover, tracking-error, or cardinality constraints; or to the problem-based framework (optimproblem/optimvar/solve) when constraints exceed what Portfolio can express: integer round lots, whole shares, per-lot or fixed commissions, minimum trade sizes, semi-integer positions, wash-sale rules, realized capital-gains caps, tax-loss harvesting, asymmetric or bucketed transaction- cost caps, or a custom efficient frontier over such constraints. Use when users ask about portfolio optimization, when they attempt quadprog, fmincon, intlinprog, or ga for a portfolio problem, or when code rounds Portfolio weights to whole shares or lots.
/matlab-specify-ssmConvert state-space equations, given as an image or as text, into a MATLAB Econometrics Toolbox ssm object. Use only when the request contains the model equations and asks to convert, implement, or create ssm code. Do not use when no equations are given; for estimating, filtering, smoothing, forecasting, or diagnosing an existing or estimated ssm model; for explaining equations without code; or for Control System ss or System Identification idss models./matlab-use-spreadsheet-linkExchange data between Excel and MATLAB using Spreadsheet Link VBA macros and worksheet functions. Use when writing Excel VBA macros that call MLPutMatrix, MLGetMatrix, MLPutVar, MLGetVar, MLPutRanges, MLEvalString, MLGetFigure, or MatlabRequest.Other plugins' skills for the same job