voly 0.0.20__py3-none-any.whl → 0.0.22__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
@@ -24,7 +24,7 @@ from voly.core.interpolate import interpolate_model
24
24
  from voly.core.charts import (
25
25
  plot_volatility_smile, plot_3d_surface, plot_parameters, plot_fit_statistics,
26
26
  plot_rnd, plot_pdf, plot_cdf, plot_rnd_all_expiries, plot_rnd_3d,
27
- plot_rnd_statistics, generate_all_plots, plot_interpolated_surface
27
+ plot_rnd_statistics, plot_interpolated_surface
28
28
  )
29
29
 
30
30
 
@@ -322,7 +322,7 @@ class VolyClient:
322
322
  return fit_results
323
323
 
324
324
  @staticmethod
325
- def get_surface(param_matrix: pd.DataFrame,
325
+ def get_surface(fit_results: Dict[str, Any],
326
326
  moneyness_params: Tuple[float, float, int] = (-2, 2, 500)
327
327
  ) -> Dict[str, Any]:
328
328
  """
@@ -337,7 +337,7 @@ class VolyClient:
337
337
  """
338
338
  # Generate the surface
339
339
  moneyness_grid, iv_surface = get_surface(
340
- param_matrix=param_matrix,
340
+ fit_results=fit_results,
341
341
  moneyness_params=moneyness_params
342
342
  )
343
343
 
@@ -364,12 +364,12 @@ class VolyClient:
364
364
  """
365
365
  plots = {}
366
366
 
367
- moneyness_grid, iv_surface = get_surface(fit_results['raw_params_matrix'], moneyness_params)
367
+ moneyness_grid, iv_surface = get_surface(fit_results, moneyness_params)
368
368
 
369
369
  # Extract data from fit results
370
370
  raw_param_matrix = fit_results['raw_param_matrix']
371
- jw_param_matrix = fit_results.get('jw_param_matrix')
372
- fit_performance = fit_results.get('fit_performance')
371
+ jw_param_matrix = fit_results['jw_param_matrix']
372
+ fit_performance = fit_results['fit_performance']
373
373
 
374
374
  # Plot volatility smiles
375
375
  plots['smiles'] = plot_all_smiles(moneyness_grid, iv_surface, market_data)
voly/core/fit.py CHANGED
@@ -265,7 +265,7 @@ def fit_model(market_data: pd.DataFrame,
265
265
 
266
266
 
267
267
  @catch_exception
268
- def get_surface(param_matrix: pd.DataFrame,
268
+ def get_surface(fit_results: Dict[str, Any],
269
269
  moneyness_params: Tuple[float, float, int] = (-2, 2, 500)
270
270
  ) -> Dict[str, Any]:
271
271
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: voly
3
- Version: 0.0.20
3
+ Version: 0.0.22
4
4
  Summary: Options & volatility research package
5
5
  Author-email: Manu de Cara <manu.de.cara@gmail.com>
6
6
  License: MIT
@@ -1,18 +1,18 @@
1
1
  voly/__init__.py,sha256=8xyDk7rFCn_MOD5hxuv5cxxKZvBVRiSIM7TgaMPpwpw,211
2
- voly/client.py,sha256=vjdHxfE2TyxXX9lE6Uq5AZeXSdAKEsEYPw4ht2884O0,19458
2
+ voly/client.py,sha256=we0n9F_fkN2FtEgbGpKXv-BdJLXNp69wBxYU5zh9_5g,19408
3
3
  voly/exceptions.py,sha256=PBsbn1vNMvKcCJwwJ4lBO6glD85jo1h2qiEmD7ArAjs,92
4
4
  voly/formulas.py,sha256=aG_HSq_a4j7TcuKiINlHSpmNdmfZa_fzYbAk8EGt954,7427
5
5
  voly/models.py,sha256=YJ12aamLz_-aOni4Qm0_XV9u4bjKK3vfJz0J2gc1h0o,3565
6
6
  voly/core/__init__.py,sha256=bu6fS2I1Pj9fPPnl-zY3L7NqrZSY5Zy6NY2uMUvdhKs,183
7
7
  voly/core/charts.py,sha256=8btc24KmE5dASNf-qjV-94UiRkzxHUewj44eRC_qe8I,26808
8
8
  voly/core/data.py,sha256=Dfk-ByHpdteUiLXr0p-wRLr3VAmdyjdDBKwjwdTgCjA,9939
9
- voly/core/fit.py,sha256=8KRkgATYkMaqaVfJjC9KFQMQ-PNvWW4zTeDxO8mvnsw,9921
9
+ voly/core/fit.py,sha256=MaKhBPxZB5FJw-8cjkzlWN2kGAkneQo3S7Gkh-sUfow,9922
10
10
  voly/core/interpolate.py,sha256=ztVIePJZOh-CIbn69wkh1JW2rKywNe2FEewRN0zcSAo,8185
11
11
  voly/core/rnd.py,sha256=-xBVzvM9sMIBtfOfWyBJKtiVcBShSGTNNp2PZFOD5j0,12155
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.20.dist-info/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
15
- voly-0.0.20.dist-info/METADATA,sha256=l_Pk0YsOnliuxyH8kZcR9Mf3DqZ-LZlvEeH5ViB0McM,4092
16
- voly-0.0.20.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
17
- voly-0.0.20.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
18
- voly-0.0.20.dist-info/RECORD,,
14
+ voly-0.0.22.dist-info/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
15
+ voly-0.0.22.dist-info/METADATA,sha256=g-WlxkjkqoaNgr-bJXqOtgItaLnJiB29b9Sha9-uGZk,4092
16
+ voly-0.0.22.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
17
+ voly-0.0.22.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
18
+ voly-0.0.22.dist-info/RECORD,,
File without changes
File without changes