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.
Files changed (29) hide show
  1. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/PKG-INFO +1 -1
  2. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/pyproject.toml +1 -1
  3. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/logsv_pricer.py +3 -1
  4. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/LICENSE.txt +0 -0
  5. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/README.md +0 -0
  6. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/__init__.py +0 -0
  7. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/data/__init__.py +0 -0
  8. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/data/fetch_option_chain.py +0 -0
  9. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/data/option_chain.py +0 -0
  10. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/data/test_option_chain.py +0 -0
  11. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/__init__.py +0 -0
  12. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/core/__init__.py +0 -0
  13. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/core/bsm_pricer.py +0 -0
  14. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/core/config.py +0 -0
  15. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/core/mc_payoffs.py +0 -0
  16. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/core/mgf_pricer.py +0 -0
  17. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/core/normal_pricer.py +0 -0
  18. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/hawkes_jd_pricer.py +0 -0
  19. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/heston_pricer.py +0 -0
  20. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/logsv/__init__.py +0 -0
  21. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/logsv/affine_expansion.py +0 -0
  22. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/logsv/vol_moments_ode.py +0 -0
  23. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/pricers/model_pricer.py +0 -0
  24. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/tests/__init__.py +0 -0
  25. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/tests/bsm_mgf_pricer.py +0 -0
  26. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/tests/qv_pricer.py +0 -0
  27. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/utils/__init__.py +0 -0
  28. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/utils/funcs.py +0 -0
  29. {stochvolmodels-1.0.10 → stochvolmodels-1.0.11}/stochvolmodels/utils/plots.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stochvolmodels
3
- Version: 1.0.10
3
+ Version: 1.0.11
4
4
  Summary: Implementation of stochastic volatility models for option pricing
5
5
  Home-page: https://github.com/ArturSepp/StochVolModels
6
6
  License: LICENSE.txt
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "stochvolmodels"
3
- version = "1.0.10"
3
+ version = "1.0.11"
4
4
  description = "Implementation of stochastic volatility models for option pricing"
5
5
  license = "LICENSE.txt"
6
6
  authors = ["Artur Sepp <artursepp@gmail.com>"]
@@ -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 = 360,
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,