voly 0.0.34__tar.gz → 0.0.36__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.
- {voly-0.0.34/src/voly.egg-info → voly-0.0.36}/PKG-INFO +1 -1
- {voly-0.0.34 → voly-0.0.36}/pyproject.toml +2 -2
- {voly-0.0.34 → voly-0.0.36}/src/voly/client.py +4 -8
- {voly-0.0.34 → voly-0.0.36}/src/voly/core/rnd.py +1 -1
- {voly-0.0.34 → voly-0.0.36/src/voly.egg-info}/PKG-INFO +1 -1
- {voly-0.0.34 → voly-0.0.36}/LICENSE +0 -0
- {voly-0.0.34 → voly-0.0.36}/README.md +0 -0
- {voly-0.0.34 → voly-0.0.36}/setup.cfg +0 -0
- {voly-0.0.34 → voly-0.0.36}/setup.py +0 -0
- {voly-0.0.34 → voly-0.0.36}/src/voly/__init__.py +0 -0
- {voly-0.0.34 → voly-0.0.36}/src/voly/core/__init__.py +0 -0
- {voly-0.0.34 → voly-0.0.36}/src/voly/core/charts.py +0 -0
- {voly-0.0.34 → voly-0.0.36}/src/voly/core/data.py +0 -0
- {voly-0.0.34 → voly-0.0.36}/src/voly/core/fit.py +0 -0
- {voly-0.0.34 → voly-0.0.36}/src/voly/core/interpolate.py +0 -0
- {voly-0.0.34 → voly-0.0.36}/src/voly/exceptions.py +0 -0
- {voly-0.0.34 → voly-0.0.36}/src/voly/formulas.py +0 -0
- {voly-0.0.34 → voly-0.0.36}/src/voly/models.py +0 -0
- {voly-0.0.34 → voly-0.0.36}/src/voly/utils/__init__.py +0 -0
- {voly-0.0.34 → voly-0.0.36}/src/voly/utils/logger.py +0 -0
- {voly-0.0.34 → voly-0.0.36}/src/voly.egg-info/SOURCES.txt +0 -0
- {voly-0.0.34 → voly-0.0.36}/src/voly.egg-info/dependency_links.txt +0 -0
- {voly-0.0.34 → voly-0.0.36}/src/voly.egg-info/requires.txt +0 -0
- {voly-0.0.34 → voly-0.0.36}/src/voly.egg-info/top_level.txt +0 -0
- {voly-0.0.34 → voly-0.0.36}/tests/test_client.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "voly"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.36"
|
|
8
8
|
description = "Options & volatility research package"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
@@ -60,7 +60,7 @@ line_length = 100
|
|
|
60
60
|
multi_line_output = 3
|
|
61
61
|
|
|
62
62
|
[tool.mypy]
|
|
63
|
-
python_version = "0.0.
|
|
63
|
+
python_version = "0.0.36"
|
|
64
64
|
warn_return_any = true
|
|
65
65
|
warn_unused_configs = true
|
|
66
66
|
disallow_untyped_defs = true
|
|
@@ -401,13 +401,13 @@ class VolyClient:
|
|
|
401
401
|
logger.info("Calculating risk-neutral density")
|
|
402
402
|
|
|
403
403
|
# Generate the surface
|
|
404
|
-
moneyness_array,
|
|
404
|
+
moneyness_array, rnd_values = get_rnd(
|
|
405
405
|
svi_params_list=svi_params_list,
|
|
406
406
|
moneyness_params=moneyness_params
|
|
407
407
|
)
|
|
408
408
|
|
|
409
409
|
return {
|
|
410
|
-
'
|
|
410
|
+
'moneyness_array': moneyness_array,
|
|
411
411
|
'rnd_values': rnd_values
|
|
412
412
|
}
|
|
413
413
|
|
|
@@ -426,16 +426,12 @@ class VolyClient:
|
|
|
426
426
|
logger.info("Calculating risk-neutral density")
|
|
427
427
|
|
|
428
428
|
# Generate the surface
|
|
429
|
-
|
|
429
|
+
rnd_values = get_rnd_surface(
|
|
430
430
|
fit_results=fit_results,
|
|
431
431
|
moneyness_params=moneyness_params
|
|
432
432
|
)
|
|
433
433
|
|
|
434
|
-
return
|
|
435
|
-
'moneyness_grid': moneyness_grid,
|
|
436
|
-
'rnd_values': rnd_values
|
|
437
|
-
}
|
|
438
|
-
|
|
434
|
+
return rnd_values
|
|
439
435
|
|
|
440
436
|
@staticmethod
|
|
441
437
|
def pdf(rnd_results: Dict[str, Any],
|
|
@@ -17,7 +17,7 @@ def rnd(moneyness_array: float, total_var: float) -> float:
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
@catch_exception
|
|
20
|
-
def get_rnd(svi_params_list: float
|
|
20
|
+
def get_rnd(svi_params_list: List[float],
|
|
21
21
|
moneyness_params: Tuple[float, float, int] = (-2, 2, 500)
|
|
22
22
|
) -> Dict[str, Any]:
|
|
23
23
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|