## S3 method for class 'default':
BinaryOption(binType, type, excType, underlying,
strike, dividendYield,
riskFreeRate, maturity, volatility, cashPayoff)## S3 method for class 'Option':
printundefined
## S3 method for class 'Option':
summaryundefined
cash
,
asset
or gap
to select CashOrNothing, AssetOrNothing
or Gap payoff profilescall
or put
european
or
american
to denote the exercise typeBinaryOption
(which inherits from class
Option
) is returned. It contains a list with the
following components:QuantLib
documentation for details on the QuantLib
implementation.QuantLib
.AmericanOption
,EuropeanOption
BinaryOption(binType="asset", type="call", excType="european", underlying=100, strike=100, dividendYield=0.02,
riskFreeRate=0.03, maturity=0.5, volatility=0.4, cashPayoff=10)
Run the code above in your browser using DataLab