voly 0.0.34__py3-none-any.whl → 0.0.36__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
@@ -401,13 +401,13 @@ class VolyClient:
401
401
  logger.info("Calculating risk-neutral density")
402
402
 
403
403
  # Generate the surface
404
- moneyness_array, iv_surface = get_rnd(
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
- 'moneyness_grid': moneyness_array,
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
- moneyness_array, iv_surface = get_rnd_surface(
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],
voly/core/rnd.py CHANGED
@@ -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[List],
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: voly
3
- Version: 0.0.34
3
+ Version: 0.0.36
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=wCmjmuHZSmsBpAk_aa6GhktHpLFqPusO_ldPN2iH0Pc,19762
2
+ voly/client.py,sha256=hKjNVmgpDdc2tAtdRZNEjRh7TQbQmtwR_QAakzhouO0,19661
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=wiX4dNH7mbQmaeP2ivFeXlyxNQLuWS54NogVTSG939s,12715
11
+ voly/core/rnd.py,sha256=oParWRKJlMmZPHG5-sUTSlhYNMMP4BfSo07361yhnpw,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.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,,
14
+ voly-0.0.36.dist-info/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
15
+ voly-0.0.36.dist-info/METADATA,sha256=N6G8Yh4POhUxsH2JkU7_F0dQYCi9sQh4dbHzTt6kglo,4092
16
+ voly-0.0.36.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
17
+ voly-0.0.36.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
18
+ voly-0.0.36.dist-info/RECORD,,
File without changes
File without changes