QuantLib 0.3.7
Getting started
Reference manual
|
OneAssetOption Class Reference#include <ql/Instruments/oneassetoption.hpp>
Inheritance diagram for OneAssetOption:
[legend]List of all members.
Detailed Description
Base class for options on a single asset.
Member Function Documentation
|
- Warning:
- currently, this method returns the Black-Scholes implied volatility. It will give unconsistent results if the pricing was performed with any other methods (such as jump-diffusion models.)
options with a gamma that changes sign have values that are not monotonic in the volatility, e.g binary options. In these cases the calculation can fail and the result (if any) is almost meaningless. Another possible source of failure is to have a target value that is not attainable with any volatility, e.g., a target value lower than the intrinsic value in the case of American options.
|
void setupArguments |
( |
Arguments * |
|
) |
const [virtual] |
|
void setupExpired |
( |
|
) |
const [protected, virtual] |
|
|
This method must leave the instrument in a consistent state when the expiration condition is met.
Reimplemented from Instrument.
Reimplemented in QuantoVanillaOption. |
void performCalculations |
( |
|
) |
const [protected, virtual] |
|
|