AsianOption function evaluates an Asian-style
option on a common stock using an analytic solution for continuous
geometric average price. The option value, the common first
derivatives ("Greeks") as well as the calling parameters are returned.## S3 method for class 'default':
AsianOption(averageType, type, underlying, strike,
dividendYield, riskFreeRate, maturity,
volatility, first=0, length=11.0/12.0, fixings=26)call or putAsianOption function returns an object of class
AsianOption (which inherits from class
Option). It contains a list with the following
components: Please see any decent Finance textbook for background reading, and the
QuantLib documentation for details on the QuantLib
implementation.
QuantLib.# simple call with some explicit parameters, and slightly increased vol:
AsianOption("geometric", "put", underlying=80, strike=85, div=-0.03,
riskFree=0.05, maturity=0.25, vol=0.2)Run the code above in your browser using DataLab