Implement a function or class to solve the Black-Scholed Model Partial Differential Equation. It should be able to price both European and American-style derivatives of arbitrary payoff structure (i.e. the payoff function should be a Callable). Implement full functionality: That is, calculate the price of both European and American options on dividend-paying stocks and be flexible to price other options besides standard calls and puts. Provide documentation: Provide docstrings and example usage for your implementation. It should be easy for someone looking at your code to understand how to call it and what the parameters mean. A short README.md file or example script would be useful.
Implement a function or class to solve the Black-Scholed Model Partial Differential Equation. It should be able to price both European and American-style derivatives of arbitrary payoff structure (i.e. the payoff function should be a Callable).
Implement full functionality: That is, calculate the price of both European and American options on dividend-paying stocks and be flexible to price other options besides standard calls and puts.
Provide documentation: Provide docstrings and example usage for your implementation. It should be easy for someone looking at your code to understand how to call it and what the parameters mean. A short README.md file or example script would be useful.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images