stochvolmodels 1.0.10__tar.gz → 1.0.11__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/PKG-INFO +1 -1
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/pyproject.toml +1 -1
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/logsv_pricer.py +3 -1
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/LICENSE.txt +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/README.md +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/__init__.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/data/__init__.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/data/fetch_option_chain.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/data/option_chain.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/data/test_option_chain.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/__init__.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/core/__init__.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/core/bsm_pricer.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/core/config.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/core/mc_payoffs.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/core/mgf_pricer.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/core/normal_pricer.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/hawkes_jd_pricer.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/heston_pricer.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/logsv/__init__.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/logsv/affine_expansion.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/logsv/vol_moments_ode.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/model_pricer.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/tests/__init__.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/tests/bsm_mgf_pricer.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/tests/qv_pricer.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/utils/__init__.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/utils/funcs.py +0 -0
- {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/utils/plots.py +0 -0
|
@@ -380,12 +380,14 @@ class LogSVPricer(ModelPricer):
|
|
|
380
380
|
ttm: float = 1.0,
|
|
381
381
|
nb_path: int = 100000,
|
|
382
382
|
is_spot_measure: bool = True,
|
|
383
|
-
nb_steps: int =
|
|
383
|
+
nb_steps: int = None,
|
|
384
|
+
year_days: int = 360,
|
|
384
385
|
**kwargs
|
|
385
386
|
) -> Tuple[np.ndarray, np.ndarray]:
|
|
386
387
|
"""
|
|
387
388
|
simulate vols in dt_path grid
|
|
388
389
|
"""
|
|
390
|
+
nb_steps = nb_steps or int(np.ceil(year_days * ttm))
|
|
389
391
|
sigma_t, grid_t = simulate_vol_paths(ttm=ttm,
|
|
390
392
|
v0=params.sigma0,
|
|
391
393
|
theta=params.theta,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/core/normal_pricer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/logsv/affine_expansion.py
RENAMED
|
File without changes
|
{stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/logsv/vol_moments_ode.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|