Main Content

Price an Instrument Portfolio

Create and price portfolio of instruments

The object-based framework supports a workflow for creating instruments, models, and pricer objects to price financial instruments. Using these objects, you can price interest-rate, inflation, equity, commodity, FX, or credit derivative instruments. The object-based workflow is an alternative to pricing financial instruments using functions. Working with modular objects for instruments, models, and pricers, you can easily reuse these objects to compare instrument prices for different models and pricing engines. You can use the object-based workflow to price a single instrument or to price a collection of instruments in a portfolio. For more information on the workflow, see Get Started with Workflows Using Object-Based Framework for Pricing Financial Instruments.

Use finportfolio to create a portfolio object and then use pricePortfolio to calculate the price and sensitivities of all instruments in the portfolio.

Objects

expand all

finportfolioCreate a finportfolio object (Since R2020a)

Functions

expand all

pricePortfolioCompute price and sensitivities for portfolio of instruments (Since R2020a)
setPricerSet pricer for finportfolio object (Since R2020a)
addInstrumentAdd instrument to portfolio of instruments (Since R2020a)
removeInstrumentRemove instrument from portfolio of instruments (Since R2020a)

Topics

Featured Examples