BarrierOption.default(barrType, type, underlying, strike, dividendYield,
riskFreeRate, maturity, volatility,
barrier, rebate=0.0)## S3 method for class 'Option':
printundefined
## S3 method for class 'Option':
summaryundefined
downin
,
downout
, upin
or upout
call
or put
BarrierOption
(which inherits from class
Option
) is returned. It contains a list with the
following components:Note that under the new pricing framework used in QuantLib, binary pricers do not provide analytics for 'Greeks'. This is expected to be addressed in future releases of QuantLib.
QuantLib
documentation for details on the QuantLib
implementation.QuantLib
.AmericanOption
,EuropeanOption
BarrierOption(barrType="downin", type="call", underlying=100,
strike=100, dividendYield=0.02, riskFreeRate=0.03,
maturity=0.5, volatility=0.4, barrier=90)
Run the code above in your browser using DataLab