voly 0.0.32__tar.gz → 0.0.34__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.32/src/voly.egg-info → voly-0.0.34}/PKG-INFO +1 -1
- {voly-0.0.32 → voly-0.0.34}/pyproject.toml +2 -2
- {voly-0.0.32 → voly-0.0.34}/src/voly/client.py +1 -1
- {voly-0.0.32 → voly-0.0.34}/src/voly/core/rnd.py +6 -3
- {voly-0.0.32 → voly-0.0.34/src/voly.egg-info}/PKG-INFO +1 -1
- {voly-0.0.32 → voly-0.0.34}/LICENSE +0 -0
- {voly-0.0.32 → voly-0.0.34}/README.md +0 -0
- {voly-0.0.32 → voly-0.0.34}/setup.cfg +0 -0
- {voly-0.0.32 → voly-0.0.34}/setup.py +0 -0
- {voly-0.0.32 → voly-0.0.34}/src/voly/__init__.py +0 -0
- {voly-0.0.32 → voly-0.0.34}/src/voly/core/__init__.py +0 -0
- {voly-0.0.32 → voly-0.0.34}/src/voly/core/charts.py +0 -0
- {voly-0.0.32 → voly-0.0.34}/src/voly/core/data.py +0 -0
- {voly-0.0.32 → voly-0.0.34}/src/voly/core/fit.py +0 -0
- {voly-0.0.32 → voly-0.0.34}/src/voly/core/interpolate.py +0 -0
- {voly-0.0.32 → voly-0.0.34}/src/voly/exceptions.py +0 -0
- {voly-0.0.32 → voly-0.0.34}/src/voly/formulas.py +0 -0
- {voly-0.0.32 → voly-0.0.34}/src/voly/models.py +0 -0
- {voly-0.0.32 → voly-0.0.34}/src/voly/utils/__init__.py +0 -0
- {voly-0.0.32 → voly-0.0.34}/src/voly/utils/logger.py +0 -0
- {voly-0.0.32 → voly-0.0.34}/src/voly.egg-info/SOURCES.txt +0 -0
- {voly-0.0.32 → voly-0.0.34}/src/voly.egg-info/dependency_links.txt +0 -0
- {voly-0.0.32 → voly-0.0.34}/src/voly.egg-info/requires.txt +0 -0
- {voly-0.0.32 → voly-0.0.34}/src/voly.egg-info/top_level.txt +0 -0
- {voly-0.0.32 → voly-0.0.34}/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.34"
|
|
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.34"
|
|
64
64
|
warn_return_any = true
|
|
65
65
|
warn_unused_configs = true
|
|
66
66
|
disallow_untyped_defs = true
|
|
@@ -387,7 +387,7 @@ class VolyClient:
|
|
|
387
387
|
# -------------------------------------------------------------------------
|
|
388
388
|
|
|
389
389
|
@staticmethod
|
|
390
|
-
def get_rnd(svi_params_list: float
|
|
390
|
+
def get_rnd(svi_params_list: List[float],
|
|
391
391
|
moneyness_params: Tuple[float, float, int] = (-2, 2, 500)
|
|
392
392
|
) -> np.ndarray:
|
|
393
393
|
"""
|
|
@@ -19,7 +19,7 @@ def rnd(moneyness_array: float, total_var: float) -> float:
|
|
|
19
19
|
@catch_exception
|
|
20
20
|
def get_rnd(svi_params_list: float[List],
|
|
21
21
|
moneyness_params: Tuple[float, float, int] = (-2, 2, 500)
|
|
22
|
-
) ->
|
|
22
|
+
) -> Dict[str, Any]:
|
|
23
23
|
|
|
24
24
|
# Adjust parameter order to match function signatures
|
|
25
25
|
a, b, sigma, rho, m = svi_params_list
|
|
@@ -36,13 +36,16 @@ def get_rnd(svi_params_list: float[List],
|
|
|
36
36
|
# Calculate risk-neutral density using the base RND function
|
|
37
37
|
rnd_values = np.array([rnd(x, var) for x, var in zip(moneyness_array, total_var)])
|
|
38
38
|
|
|
39
|
-
return
|
|
39
|
+
return {
|
|
40
|
+
'moneyness_array': moneyness_array,
|
|
41
|
+
'rnd_values': rnd_values
|
|
42
|
+
}
|
|
40
43
|
|
|
41
44
|
|
|
42
45
|
@catch_exception
|
|
43
46
|
def get_rnd_surface(fit_results: Dict[str, Any],
|
|
44
47
|
moneyness_params: Tuple[float, float, int] = (-2, 2, 500)
|
|
45
|
-
) -> Dict[str,
|
|
48
|
+
) -> Dict[str, Any]:
|
|
46
49
|
"""
|
|
47
50
|
Calculate RND for all expiries using the SVI parameter matrix.
|
|
48
51
|
|
|
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
|