voly 0.0.22__py3-none-any.whl → 0.0.24__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/core/fit.py CHANGED
@@ -289,11 +289,12 @@ def get_surface(fit_results: Dict[str, Any],
289
289
  # Get YTE values from the parameter matrix attributes
290
290
  yte_values = fit_results['fit_performance']['YTE']
291
291
  maturity_values = fit_results['fit_performance']['Maturity']
292
+ param_matrix = fit_results['raw_param_matrix']
292
293
 
293
294
  # Generate implied volatility for each expiry
294
295
  for maturity, yte in zip(maturity_values, yte_values):
295
296
  svi_params = param_matrix[maturity].values
296
- w_svi = [SVIModel.svi(x, *svi_params) for x in moneyness_values]
297
+ w_svi = [SVIModel.svi(x, *svi_params) for x in moneyness_grid]
297
298
  iv_surface[yte] = np.sqrt(np.array(w_svi) / yte)
298
299
 
299
300
  return moneyness_grid, iv_surface
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: voly
3
- Version: 0.0.22
3
+ Version: 0.0.24
4
4
  Summary: Options & volatility research package
5
5
  Author-email: Manu de Cara <manu.de.cara@gmail.com>
6
6
  License: MIT
@@ -6,13 +6,13 @@ 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=MaKhBPxZB5FJw-8cjkzlWN2kGAkneQo3S7Gkh-sUfow,9922
9
+ voly/core/fit.py,sha256=y0NSpNGwkm7xd_Feb6wWB3t12oXEbGVvjfXVwNV8Q-M,9971
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.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,,
14
+ voly-0.0.24.dist-info/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
15
+ voly-0.0.24.dist-info/METADATA,sha256=HilW4OQmZpuiz2pQhidbUV9iQfpOWRYeKgQxFBKL0wc,4092
16
+ voly-0.0.24.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
17
+ voly-0.0.24.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
18
+ voly-0.0.24.dist-info/RECORD,,
File without changes
File without changes