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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: voly
3
- Version: 0.0.32
3
+ Version: 0.0.34
4
4
  Summary: Options & volatility research package
5
5
  Author-email: Manu de Cara <manu.de.cara@gmail.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "voly"
7
- version = "0.0.32"
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.32"
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[List],
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
- ) -> np.ndarray:
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 moneyness_array, rnd_values
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, np.ndarray]:
48
+ ) -> Dict[str, Any]:
46
49
  """
47
50
  Calculate RND for all expiries using the SVI parameter matrix.
48
51
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: voly
3
- Version: 0.0.32
3
+ Version: 0.0.34
4
4
  Summary: Options & volatility research package
5
5
  Author-email: Manu de Cara <manu.de.cara@gmail.com>
6
6
  License: MIT
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