voly 0.0.32__py3-none-any.whl → 0.0.34__py3-none-any.whl

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/client.py CHANGED
@@ -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
  """
voly/core/rnd.py CHANGED
@@ -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
@@ -1,5 +1,5 @@
1
1
  voly/__init__.py,sha256=8xyDk7rFCn_MOD5hxuv5cxxKZvBVRiSIM7TgaMPpwpw,211
2
- voly/client.py,sha256=bUzODU0qybT-5xOxkc6RFthSlGH7dfNK96siVMgvS-Y,19762
2
+ voly/client.py,sha256=wCmjmuHZSmsBpAk_aa6GhktHpLFqPusO_ldPN2iH0Pc,19762
3
3
  voly/exceptions.py,sha256=PBsbn1vNMvKcCJwwJ4lBO6glD85jo1h2qiEmD7ArAjs,92
4
4
  voly/formulas.py,sha256=7NQZtYWFT_VOyAVNQHLB5-8caGAdtzU8y8eFcYJsZn8,7256
5
5
  voly/models.py,sha256=YJ12aamLz_-aOni4Qm0_XV9u4bjKK3vfJz0J2gc1h0o,3565
@@ -8,11 +8,11 @@ voly/core/charts.py,sha256=lHiDYKb4uHK2R7wjs8xuxQ6FD9QsQyFR2-6bbtxqquE,26696
8
8
  voly/core/data.py,sha256=Dfk-ByHpdteUiLXr0p-wRLr3VAmdyjdDBKwjwdTgCjA,9939
9
9
  voly/core/fit.py,sha256=rozX5UIVPxjWtd2BpLIHtR99WyeNjdATRUfVPkM7GdY,9911
10
10
  voly/core/interpolate.py,sha256=ztVIePJZOh-CIbn69wkh1JW2rKywNe2FEewRN0zcSAo,8185
11
- voly/core/rnd.py,sha256=88SaNpy2DkMpvLVbyhvCzBwgaPqIWn8OcQRhy_z7LWk,12661
11
+ voly/core/rnd.py,sha256=wiX4dNH7mbQmaeP2ivFeXlyxNQLuWS54NogVTSG939s,12715
12
12
  voly/utils/__init__.py,sha256=E05mWatyC-PDOsCxQV1p5Xi1IgpOomxrNURyCx_gB-w,200
13
13
  voly/utils/logger.py,sha256=4-_2bVJmq17Q0d7Rd2mPg1AeR8gxv6EPvcmBDMFWcSM,1744
14
- voly-0.0.32.dist-info/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
15
- voly-0.0.32.dist-info/METADATA,sha256=ZiQBFwu9vCm4H-6LtMQS_7-ZnUbABEEfOTilEIdUB3k,4092
16
- voly-0.0.32.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
17
- voly-0.0.32.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
18
- voly-0.0.32.dist-info/RECORD,,
14
+ voly-0.0.34.dist-info/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
15
+ voly-0.0.34.dist-info/METADATA,sha256=MlHk8jLn8HRa3Qd-YVMvoXyEisE_h3lfsuZHWwkF96U,4092
16
+ voly-0.0.34.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
17
+ voly-0.0.34.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
18
+ voly-0.0.34.dist-info/RECORD,,
File without changes
File without changes