voly 0.0.122__py3-none-any.whl → 0.0.124__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
@@ -216,7 +216,10 @@ class VolyClient:
216
216
  return_domain=return_domain
217
217
  )
218
218
 
219
- return iv_surface, x_surface
219
+ return {
220
+ 'iv_surface': iv_surface,
221
+ 'x_surface': x_surface
222
+ }
220
223
 
221
224
  @staticmethod
222
225
  def plot_model(fit_results: pd.DataFrame,
@@ -316,7 +319,12 @@ class VolyClient:
316
319
  method=method
317
320
  )
318
321
 
319
- return pdf_surface, cdf_surface, x_surface, moments
322
+ return {
323
+ 'pdf_surface': pdf_surface,
324
+ 'cdf_surface': cdf_surface,
325
+ 'x_surface': x_surface,
326
+ 'moments': moments
327
+ }
320
328
 
321
329
  # -------------------------------------------------------------------------
322
330
  # Historical Density (HD)
voly/core/rnd.py CHANGED
@@ -220,8 +220,7 @@ def get_all_moments(x, pdf):
220
220
  def get_rnd_surface(model_results: pd.DataFrame,
221
221
  domain_params: Tuple[float, float, int] = (-1.5, 1.5, 1000),
222
222
  return_domain: str = 'log_moneyness',
223
- method: str = 'rookley') -> Tuple[
224
- Dict[str, np.ndarray], Dict[str, np.ndarray], Dict[str, np.ndarray], pd.DataFrame]:
223
+ method: str = 'rookley') -> Dict[str, np.ndarray]:
225
224
  """
226
225
  Generate RND surface from vol smile parameters.
227
226
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: voly
3
- Version: 0.0.122
3
+ Version: 0.0.124
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=HWLfM9IaSa4O1BZa7Zy4GaGTfxJZUTjTXC2Xdhl05Yk,14710
2
+ voly/client.py,sha256=3Qe_fLkBTEPHzZ9rZdXd4u4xhaIpQGesn1XjkcBIk1A,14887
3
3
  voly/exceptions.py,sha256=PBsbn1vNMvKcCJwwJ4lBO6glD85jo1h2qiEmD7ArAjs,92
4
4
  voly/formulas.py,sha256=HejPfgVh6-hmWDhvwbHgAIfQMt8iPbIiaKqcBrB5Spw,10766
5
5
  voly/models.py,sha256=BF-O7BjGf0BLMpw4rCtfwW7s8_f4iyUZdUY6q1dVxLs,3363
@@ -9,11 +9,11 @@ voly/core/data.py,sha256=pDeuYhP0GX4RbtlqByvsE3rfHcIkix0BU5MLW8sKIeI,8935
9
9
  voly/core/fit.py,sha256=Tb9eeG7e_2dQTcqt6aqEwFrZdy6jR9rSNqe6tzOdVhQ,9245
10
10
  voly/core/hd.py,sha256=ODaDW95V_jq-yja-arJi1llgvf7Yq0RTGnjSyn6HEsw,13455
11
11
  voly/core/interpolate.py,sha256=JkK172-FXyhesW3hY4pEeuJWG3Bugq7QZXbeKoRpLuo,5305
12
- voly/core/rnd.py,sha256=VKM8ojLBziB9nxOEsKO5z_9Z1BSOVNxg0OQPx-Sp80I,10094
12
+ voly/core/rnd.py,sha256=0VE77lxesx_BPAO46QwKpcauZNaHnPTiDhmRbSURn3c,10022
13
13
  voly/utils/__init__.py,sha256=E05mWatyC-PDOsCxQV1p5Xi1IgpOomxrNURyCx_gB-w,200
14
14
  voly/utils/logger.py,sha256=4-_2bVJmq17Q0d7Rd2mPg1AeR8gxv6EPvcmBDMFWcSM,1744
15
- voly-0.0.122.dist-info/licenses/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
16
- voly-0.0.122.dist-info/METADATA,sha256=IjpUVDg7twmhzzVrQBIm6Zofcl3sY_SiiYf2Jfx1ZH8,4115
17
- voly-0.0.122.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
18
- voly-0.0.122.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
19
- voly-0.0.122.dist-info/RECORD,,
15
+ voly-0.0.124.dist-info/licenses/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
16
+ voly-0.0.124.dist-info/METADATA,sha256=OgVZEuKHA8iCCB56Y4r77eAT6oCr3lhegeq0WguT2CA,4115
17
+ voly-0.0.124.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
18
+ voly-0.0.124.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
19
+ voly-0.0.124.dist-info/RECORD,,
File without changes