Main Content

Price Equity, FX, Commodity, or Energy Instruments

Create equity, FX, commodity, or energy instrument object, associate the object with a model, and specify pricing method

An equity derivative is a contract whose value is at least partly derived from one or more underlying equity, FX, commodity, or energy securities. This toolbox provides functionality to price, compute sensitivity and hedging analysis to many equity securities. You can price vanilla, asian, lookback, barrier, and spread options with pricing models that include lattice models, Monte Carlo simulations, multiple closed-form solutions, and finite differences methods.

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, seeGet Started with Workflows Using Object-Based Framework for Pricing Financial Instruments.

Create an equity, foreign exchange (FX), or commodity instrument object usingfininstrument, then associate a model usingfinmodel, and then specify a pricing method usingfinpricer.

Functions

expand all

fininstrument Create specified instrument object type
finmodel Create specified model object type
finpricer Create pricing method
setExercisePolicy Set exercise policy forFixedBondOption,FloatBondOption, orVanillainstrument
price Compute price for interest-rate, equity, or credit derivative instrument withAnalyticpricer
price Compute price for equity instrument withFiniteDifferencepricer
price Compute price for equity instrument withFFTpricer
price Compute price for equity instrument withNumericalIntegrationpricer
price Compute price for equity instrument withVannaVolgapricer
price Compute price for equity instrument withAssetMonteCarlopricer
price Compute price for equity instrument withReplicatingVarianceSwappricer
price Compute price for equity instrument withAssetTreepricer

Objects

expand all

Vanilla Vanillainstrument object
Lookback Lookbackinstrument
PartialLookback PartialLookbackinstrument
Barrier Barrierinstrument object
DoubleBarrier DoubleBarrierinstrument object
Asian Asianinstrument object
Spread Spreadinstrument object
VarianceSwap VarianceSwapinstrument object
Cliquet Cliquetinstrument object
Binary Binaryinstrument object
Touch Touchinstrument object
DoubleTouch DoubleTouchinstrument object
ConvertibleBond ConvertibleBondinstrument object
BlackScholes CreateBlackScholesmodel object for anAsian,Barrier,DoubleBarrier,Lookback,PartialLookback,Spread,Vanilla,Touch,DoubleTouch,Cliquet, orBinaryinstrument
Bachelier CreateBacheliermodel object forVanilla,Spread, orBinaryinstrument
Heston CreateHestonmodel object forVanilla,Asian,Barrier,DoubleBarrier,Lookback,PartialLookback,VarianceSwap,Touch,DoubleTouch,Cliquet, orBinaryinstrument
Bates CreateBatesmodel object forVanilla,Asian,Barrier,DoubleBarrier,Lookback,PartialLookback,Touch,DoubleTouch,Cliquet, orBinaryinstrument
Dupire CreateDupiremodel object for local volatility forVanillainstrument
Merton CreateMertonmodel object forVanilla,Asian,Barrier,DoubleBarrier,Lookback,PartialLookback,OneTouch,DoubleTouch,Cliquet, orBinaryinstrument

AssetTree Pricer for Vanilla, Barrier, Asian, or Lookback Instruments

AssetTree CreateAssetTreepricer object forVanilla,Barrier,Asian, orLookbackinstrument

Monte Carlo, Finite Difference, Numerical Integration, FFT, Replicating Variance Swap Pricers for Vanilla, Barrier, Cliquet, or Variance Swap Instruments

AssetMonteCarlo CreateAssetMonteCarlopricer object for equity instruments usingBlackScholes,Merton,Heston, orBatesmodel
FiniteDifference CreateFiniteDifferencepricer object forBarrier,DoubleBarrier, orVanillainstrument using aBlackScholes,Heston,Merton, orBatesmodel
NumericalIntegration CreateNumericalIntegrationpricer object forVanillainstrument usingHeston,Bates, orMertonmodel
FFT CreateFFTpricer object forVanillainstrument usingMerton,Heston, orBatesmodel
VannaVolga CreateVannaVolgapricer object forVanilla,Barrier,DoubleBarrier,Touch, orDoubleTouchinstrument usingBlackScholesmodel
ReplicatingVarianceSwap CreateReplicatingVarianceSwappricer object forVarianceSwapinstrument usingratecurveobject

Closed-Form Pricers for Asian, Lookback, Spread, Cliquet, and Vanilla Instruments

BjerksundStensland CreateBjerksundStenslandpricer object forVanillaorSpreadinstrument usingBlackScholesmodel
BlackScholes CreateBlackScholespricer object forVanilla,Barrier,Touch,DoubleTouch, orBinaryinstrument usingBlackScholesmodel
ConzeViswanathan CreateConzeViswanathanpricer object forLookbackinstrument usingBlackScholesmodel
GoldmanSosinGatto CreateGoldmanSosinGattopricer object forLookbackinstrument usingBlackScholesmodel
Heston CreateHestonpricer object forVarianceSwapinstrument usingHestonmodel
HeynenKat CreateHeynenKatpricer object forPartialLookbackinstrument usingBlackScholesmodel
IkedaKunitomo CreateIkedaKunitomopricer object forDoubleBarrierinstrument usingBlackScholesmodel
KemnaVorst CreateKemnaVorstpricer object forAsianinstrument usingBlackScholesmodel
Kirk CreateKirkpricer object forSpreadinstrument usingBlackScholesmodel
Levy CreateLevypricer object forAsianinstrument usingBlackScholesmodel
RollGeskeWhaley CreateRollGeskeWhaleypricer object for American exerciseVanillainstrument usingBlackScholesmodel
Rubinstein CreateRubinsteinpricer object forCliquetinstrument usingBlackScholesmodel
TurnbullWakeman CreateTurnbullWakemanpricer object forAsianinstrument usingBlackScholesmodel

Examples and How To

Price Spread Instrument for a Commodity Using Black-Scholes Model and Analytic Pricers

This example shows the workflow to price a commoditySpreadinstrument when you use aBlackScholesmodel andKirkandBjerksundStenslandanalytic pricing methods.

Price European Vanilla Call Options Using Black-Scholes Model and Different Equity Pricers

This example shows how to compare EuropeanVanillainstrument call option prices using aBlackScholesmodel and different pricing methods.

Use Black-Scholes Model to Price Asian Options with Several Equity Pricers

This example shows how to compare arithmetic and geometric Asian option prices using theBlackScholes模型和各种pricing methods.

Hedging an Option Using Reinforcement Learning Toolbox

This example shows how to learn an optimal option hedging policy and outperform the traditional BSM approach using Reinforcement Learning Toolbox™ .

Concepts

Get Started with Workflows Using Object-Based Framework for Pricing Financial Instruments

Use objects to model and price financial instruments.

Choose Instruments, Models, and Pricers

Select instruments, associated models, and associated pricers.

Supported Exercise Styles

The following table lists the interest-rate instrument objects with their associated models and pricers and supportedExercisestyles.

Mapping Financial Instruments Toolbox Functions to Object-Based Framework for Instruments, Models, and Pricers

映射函数tions to a workflow using objects for instruments, models, and pricers.

Featured Examples