We were passing the option itself instead of the underlying.
To fix this, we modify the MarketDataProvider methods to accept a std::string instead of an asset and correct the Black-Scholes implementation by passing the ticker of the underlying to the relevant methods.
The formatting was broken once more. I will create a new issue to add autoformatting to the GitHub workflow.
We are addressing this issue https://github.com/Waifod/quant_finance_models/issues/19
We were passing the option itself instead of the underlying.
To fix this, we modify the
MarketDataProvider
methods to accept astd::string
instead of an asset and correct the Black-Scholes implementation by passing the ticker of the underlying to the relevant methods.The formatting was broken once more. I will create a new issue to add autoformatting to the GitHub workflow.