April 2019
Intermediate to advanced
426 pages
11h 13m
English
Unlike European options, which can only be exercised at maturity, American options can be exercised at any time during their lifetime.
To implement the pricing of American options in Python, in the same way we did with the BinomialEuropeanOption class, create a class named BinomialTreeOption that inherits the Stockoption class. The parameters that are used in the setup_parameters() method remain the same, except for the removal of an unused M parameter.
The methods that are used in American options are as follows:
Read now
Unlock full access