VarianceSwap
Description
Create and price a VarianceSwap
instrument object for one
or more Variance Swap instruments using this workflow:
Use
fininstrument
to create aVarianceSwap
instrument object for one or more Variance Swap instruments.Use
ratecurve
to specify a curve model or usefinmodel
to specify aHeston
model.Choose a pricing method.
When using a curve model, use
finpricer
to specify aReplicatingVarianceSwap
pricing method for one or moreVarianceSwap
instruments.When using a
Heston
model, usefinpricer
to specify aHeston
pricing method for one or moreVarianceSwap
instruments.
For more information on this workflow, see Get Started with Workflows Using Object-Based Framework for Pricing Financial Instruments.
For more information on the available models and pricing methods for a
VarianceSwap
instrument, see Choose Instruments, Models, and Pricers.
Creation
Syntax
Description
creates a VarianceSwapInstrument
= fininstrument(InstrumentType
,'Maturity
',maturity_date,'Notional
',notional_value)VarianceSwap
object for one or more Variance
Swap instruments by specifying InstrumentType
and sets
properties using
the required name-value pair arguments Maturity
and
Notional
.
The VarianceSwap
instrument supports the ReplicatingVarianceSwap
and Heston
pricing methods. For more information on the VarianceSwap
instrument, see More About.
sets optional properties using
additional name-value pair arguments in addition to the required arguments
in the previous syntax. For example, VarianceSwapInstrument
= fininstrument(___,Name,Value
)VarianceSwapInstrument =
fininstrument("VarianceSwap",'Maturity',datetime(2019,1,30),'Notional',100,'StartDate',datetime(2016,1,30),'RealizedVariance',0.02,'Strike',110,'Name',"varianceswap_instrument")
creates a VarianceSwap
option with a maturity date of
January 30, 2019. You can specify multiple name-value pair arguments.