voly 0.0.21__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 +5 -5
- voly/core/fit.py +1 -1
- {voly-0.0.21.dist-info → voly-0.0.22.dist-info}/METADATA +1 -1
- {voly-0.0.21.dist-info → voly-0.0.22.dist-info}/RECORD +7 -7
- {voly-0.0.21.dist-info → voly-0.0.22.dist-info}/LICENSE +0 -0
- {voly-0.0.21.dist-info → voly-0.0.22.dist-info}/WHEEL +0 -0
- {voly-0.0.21.dist-info → voly-0.0.22.dist-info}/top_level.txt +0 -0
voly/client.py
CHANGED
|
@@ -322,7 +322,7 @@ class VolyClient:
|
|
|
322
322
|
return fit_results
|
|
323
323
|
|
|
324
324
|
@staticmethod
|
|
325
|
-
def get_surface(
|
|
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
|
-
|
|
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
|
|
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
|
|
372
|
-
fit_performance = fit_results
|
|
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(
|
|
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,18 +1,18 @@
|
|
|
1
1
|
voly/__init__.py,sha256=8xyDk7rFCn_MOD5hxuv5cxxKZvBVRiSIM7TgaMPpwpw,211
|
|
2
|
-
voly/client.py,sha256=
|
|
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=
|
|
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.
|
|
15
|
-
voly-0.0.
|
|
16
|
-
voly-0.0.
|
|
17
|
-
voly-0.0.
|
|
18
|
-
voly-0.0.
|
|
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
|
|
File without changes
|