VarianceSwap
instrument object
Create and price a VarianceSwap
instrument object using
this workflow:
Use fininstrument
to create a VarianceSwap
instrument object.
Use ratecurve
to specify a
curve model or use finmodel
to specify
a Heston
model.
When using a curve model, use finpricer
to
specify a ReplicatingVarianceSwap
pricing method for the
VarianceSwap
instrument.
When using a Heston
model, use
finpricer
to
specify a Heston
pricing method for the VarianceSwap
instrument.
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.
creates a VarianceSwapInstrument
= fininstrument(InstrumentType
,'Maturity
',maturity_date,'Notional
',notional_value)VarianceSwap
object 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.