Spaces:
Sleeping
Sleeping
Download quantlib_pro/options/__init__.py from gdukens/QuantLib_Pro: direct link, hf CLI and curl.
- Browser
- Download file 1.88 kB
-
https://huggingface.co/spaces/gdukens/QuantLib_Pro/resolve/main/quantlib_pro/options/__init__.py
- Command line
-
hf download hf://spaces/gdukens/QuantLib_Pro/quantlib_pro/options/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/gdukens/QuantLib_Pro/resolve/main/quantlib_pro/options/__init__.py
1.88 kB
| """Suite A: Options Pricing & Derivatives | |
| Consolidates: | |
| - Black-Scholes-Visual-Explainer | |
| - Monte-Carlo-Option-Pricing-Simulator | |
| - Volatility-Surface-Builder | |
| - Bachelier Model (Arithmetic Brownian Motion) | |
| - Options pricing and Greeks calculation tools | |
| """ | |
| # SDK Manager interface | |
| from .manager import OptionsManager | |
| # Black-Scholes analytical pricing | |
| from quantlib_pro.options.black_scholes import ( | |
| delta as bs_delta, | |
| gamma as bs_gamma, | |
| implied_volatility, | |
| price as bs_price, | |
| price_call, | |
| price_put, | |
| price_with_greeks, | |
| rho as bs_rho, | |
| theta as bs_theta, | |
| vega as bs_vega, | |
| ) | |
| # Bachelier model (Arithmetic Brownian Motion) | |
| from quantlib_pro.options.bachelier import ( | |
| BachelierModel, | |
| BachelierParams, | |
| bachelier_call, | |
| bachelier_put, | |
| ) | |
| # Monte Carlo simulation | |
| from quantlib_pro.options.monte_carlo import ( | |
| MonteCarloConfig, | |
| price_asian_call, | |
| price_barrier_up_and_out_call, | |
| price_european, | |
| price_lookback_call, | |
| ) | |
| # Greeks computation | |
| from quantlib_pro.options.greeks import ( | |
| GreeksProfile, | |
| compute_delta_fd, | |
| compute_gamma_fd, | |
| compute_greeks, | |
| compute_rho_fd, | |
| compute_theta_fd, | |
| compute_vega_fd, | |
| ) | |
| __all__ = [ | |
| # SDK Manager | |
| "OptionsManager", | |
| # Black-Scholes | |
| "price_call", | |
| "price_put", | |
| "bs_price", | |
| "price_with_greeks", | |
| "implied_volatility", | |
| "bs_delta", | |
| "bs_gamma", | |
| "bs_vega", | |
| "bs_theta", | |
| "bs_rho", | |
| # Bachelier | |
| "BachelierModel", | |
| "BachelierParams", | |
| "bachelier_call", | |
| "bachelier_put", | |
| # Monte Carlo | |
| "MonteCarloConfig", | |
| "price_european", | |
| "price_asian_call", | |
| "price_lookback_call", | |
| "price_barrier_up_and_out_call", | |
| # Greeks | |
| "GreeksProfile", | |
| "compute_greeks", | |
| "compute_delta_fd", | |
| "compute_gamma_fd", | |
| "compute_vega_fd", | |
| "compute_theta_fd", | |
| "compute_rho_fd", | |
| ] |