SkillAgentSearch skills...

matlab-price-instrument

Price financial instruments in MATLAB using the Financial Instruments Toolbox. Route to the appropriate numerical method reference based on the user's request: Monte Carlo simulation (AssetMonteCarlo, IRMonteCarlo, RoughVolMonteCarlo), FFT / Numerical Integration (Vanilla European options), or Inter…

Install / Use

npx skills add matlab/matlab-agentic-toolkit --skill matlab-price-instrument

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

82/100

Supported Platforms

Universal

Our assessment of matlab-price-instrument

matlab-price-instrument scores 82/100 on our quality scale, 3246th of 4,646 Development & Engineering skills we index.

Its SKILL.md is 6.3 KB long, split into 7 sections and no code examples: a thorough specification that gives an agent plenty to work with.

With 1,098 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
29/30
Structure
11/20
Description
15/15
Adoption
13/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 18 days ago, so matlab-price-instrument is actively maintained.
  • No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
  • Its trust signals score 88/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

matlab-price-instrument compared with similar skills

All 4 of these similar skills score higher than matlab-price-instrument; compare them before choosing.

SkillScoreStarsUpdatedFormat
matlab-price-instrument (this skill)by matlab821.1k18d agoSKILL.md
ai-job-searchby MadsLorentzen10044.9ktodayCLAUDE.md
claude-howtoby luongnv8910041.7k3d agoCLAUDE.md
algorithmic-artby anthropics100177.9k11d agoSKILL.md
pptxby anthropics100177.9k11d agoSKILL.md

Frequently asked questions

How do I install matlab-price-instrument?
Run npx skills add matlab/matlab-agentic-toolkit --skill matlab-price-instrument. The install tabs above show the steps for each supported agent.
Which AI agents does matlab-price-instrument work with?
It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
Is matlab-price-instrument safe to use?
It declares no license and scores 88/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is matlab-price-instrument still maintained?
The repository was last updated 18 days ago, so matlab-price-instrument is actively maintained.

name: matlab-price-instrument description: > Price financial instruments in MATLAB using the Financial Instruments Toolbox. Route to the appropriate numerical method reference based on the user's request: Monte Carlo simulation (AssetMonteCarlo, IRMonteCarlo, RoughVolMonteCarlo), FFT / Numerical Integration (Vanilla European options), or Interest-Rate Trees (option-embedded bonds with IRTree). Use when the user asks to price financial instruments or compute Greeks using any of these methods. Use one of the following models depending on the pricing method and instrument: Black-Scholes, Bachelier, Heston, Bates, Merton, Hull-White, Black-Karasinski, Black-Derman-Toy, Cox-Ingersoll-Ross, Linear Gaussian 2 Factor (G2PP), Brace-Gatarek-Musiela (BGM), SABR-BGM, RoughBergomi, RoughHeston. license: https://www.mathworks.com/content/dam/mathworks/license/pmrl/license.md metadata: author: MathWorks version: "1.0"

Price Financial Instruments in MATLAB

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.

When to Use

  • User asks to price options, bonds, swaps, or derivatives in MATLAB
  • User asks for Greeks/sensitivities (delta, vega, gamma, theta, rho, lambda)
  • User mentions finpricer, fininstrument, finmodel, or ratecurve
  • User asks about Monte Carlo, tree / lattice, or FFT (Fast Fourier Transform) / FRFT (Fractional FFT) pricing
  • User wants to compare pricing methods for the same instrument

When NOT to Use

  • User is working with a non-MATLAB environment
  • User wants to build a custom instrument with a novel payoff function
  • User explicitly asks for a from-scratch implementation without the Financial Instruments Toolbox

Method Routing

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 |

Routing Rules

Read exactly one reference (and any relevant sub-references) that best matches based on these rules:

  1. User mentions a specific pricer:

    • AssetMonteCarlo, RoughVolMonteCarlo, IRMonteCarlo -> references/monte-carlo.md
    • FFT, NumericalIntegration -> references/ni-fft.md
    • IRTree -> references/embedded-bond-tree.md
  2. User mentions a specific numerical method and associated concepts:

    • Monte Carlo, simulation, NumTrials, SimulationDates -> references/monte-carlo.md
    • FFT, FRFT, characteristic function, CharacteristicFcnStep, LogStrikeStep -> references/ni-fft.md
    • Interest-rate tree, TreeDates, exercise probability -> references/embedded-bond-tree.md
  3. User mentions instrument type without a method:

    • Path-dependent options or other exotic options (Asian, Barrier, Lookback, Cliquet, Touch, Spread, Binary) -> references/monte-carlo.md
    • European vanilla options under stochastic vol/jump models -> references/ni-fft.md
    • Callable/puttable fixed-rate bonds -> references/embedded-bond-tree.md
    • IR derivatives (caps, floors, swaptions, swaps) -> references/monte-carlo.md
  4. User mentions model name without a method:

    • Heston, Bates, Merton + European vanilla -> references/ni-fft.md
    • Heston, Bates, Merton + exotic/path-dependent -> references/monte-carlo.md
    • Hull-White, Black-Karasinski, BDT, CIR + callable/puttable bond -> references/embedded-bond-tree.md
    • Hull-White, BK, Linear Gaussian 2 Factor (G2PP), Brace-Gatarek-Musiela (BGM), SABR-BGM + caps/floors/swaptions -> references/monte-carlo.md
    • Rough volatility (RoughBergomi, RoughHeston) -> references/monte-carlo.md
  5. Ambiguous:

    • When asked to price European vanilla options without specifying pricing method (e.g., "price European call options with Heston in MATLAB"), default to references/ni-fft.md (faster, more accurate for European vanilla)
    • If user needs path simulation in addition to price and sensitivities, use references/monte-carlo.md
    • If user requests exercise probabilities at each time step for option embedded bonds, use references/embedded-bond-tree.md

Shared Conventions

All three methods share these conventions:

  • Always prefer to use finpricer/fininstrument/finmodel/ratecurve objects (modern OO API) over legacy functions
  • Never use legacy functions unless the user explicitly names them, or the reference suggests them for specific use cases
  • Use name-value pairs with string keys: "DiscountCurve", not positional arguments
  • Parameter names are case-insensitive but write them in MixedCase for clarity
  • Always use datetime for dates (not datenum)
  • Do not use price as a variable name — it shadows the price function; prefer p, or capitalized Price
  • Request two outputs from price() when Greeks or tree data are needed: [p, pr] = price(...)

Common Mistakes (Cross-Method)

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.


Related Skills

View on GitHub
GitHub Stars1.1k
CategoryDevelopment
Updated18d ago
Forks134

Languages

MATLAB

Trust signals

88/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 medium