voly 0.0.17__tar.gz → 0.0.19__tar.gz
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-0.0.17/src/voly.egg-info → voly-0.0.19}/PKG-INFO +1 -1
- {voly-0.0.17 → voly-0.0.19}/pyproject.toml +2 -2
- {voly-0.0.17 → voly-0.0.19}/src/voly/client.py +11 -2
- {voly-0.0.17 → voly-0.0.19}/src/voly/core/fit.py +1 -1
- {voly-0.0.17 → voly-0.0.19/src/voly.egg-info}/PKG-INFO +1 -1
- {voly-0.0.17 → voly-0.0.19}/LICENSE +0 -0
- {voly-0.0.17 → voly-0.0.19}/README.md +0 -0
- {voly-0.0.17 → voly-0.0.19}/setup.cfg +0 -0
- {voly-0.0.17 → voly-0.0.19}/setup.py +0 -0
- {voly-0.0.17 → voly-0.0.19}/src/voly/__init__.py +0 -0
- {voly-0.0.17 → voly-0.0.19}/src/voly/core/__init__.py +0 -0
- {voly-0.0.17 → voly-0.0.19}/src/voly/core/charts.py +0 -0
- {voly-0.0.17 → voly-0.0.19}/src/voly/core/data.py +0 -0
- {voly-0.0.17 → voly-0.0.19}/src/voly/core/interpolate.py +0 -0
- {voly-0.0.17 → voly-0.0.19}/src/voly/core/rnd.py +0 -0
- {voly-0.0.17 → voly-0.0.19}/src/voly/exceptions.py +0 -0
- {voly-0.0.17 → voly-0.0.19}/src/voly/formulas.py +0 -0
- {voly-0.0.17 → voly-0.0.19}/src/voly/models.py +0 -0
- {voly-0.0.17 → voly-0.0.19}/src/voly/utils/__init__.py +0 -0
- {voly-0.0.17 → voly-0.0.19}/src/voly/utils/logger.py +0 -0
- {voly-0.0.17 → voly-0.0.19}/src/voly.egg-info/SOURCES.txt +0 -0
- {voly-0.0.17 → voly-0.0.19}/src/voly.egg-info/dependency_links.txt +0 -0
- {voly-0.0.17 → voly-0.0.19}/src/voly.egg-info/requires.txt +0 -0
- {voly-0.0.17 → voly-0.0.19}/src/voly.egg-info/top_level.txt +0 -0
- {voly-0.0.17 → voly-0.0.19}/tests/test_client.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "voly"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.19"
|
|
8
8
|
description = "Options & volatility research package"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
@@ -60,7 +60,7 @@ line_length = 100
|
|
|
60
60
|
multi_line_output = 3
|
|
61
61
|
|
|
62
62
|
[tool.mypy]
|
|
63
|
-
python_version = "0.0.
|
|
63
|
+
python_version = "0.0.19"
|
|
64
64
|
warn_return_any = true
|
|
65
65
|
warn_unused_configs = true
|
|
66
66
|
disallow_untyped_defs = true
|
|
@@ -324,7 +324,7 @@ class VolyClient:
|
|
|
324
324
|
@staticmethod
|
|
325
325
|
def get_surface(param_matrix: pd.DataFrame,
|
|
326
326
|
moneyness_params: Tuple[float, float, int] = (-2, 2, 500)
|
|
327
|
-
) ->
|
|
327
|
+
) -> Dict[str, Any]:
|
|
328
328
|
"""
|
|
329
329
|
Generate implied volatility surface using optimized SVI parameters.
|
|
330
330
|
|
|
@@ -335,7 +335,16 @@ class VolyClient:
|
|
|
335
335
|
Returns:
|
|
336
336
|
- Tuple of (moneyness_grid, iv_surface)
|
|
337
337
|
"""
|
|
338
|
-
|
|
338
|
+
# Generate the surface
|
|
339
|
+
moneyness_grid, iv_surface = get_surface(
|
|
340
|
+
param_matrix=param_matrix,
|
|
341
|
+
moneyness_params=moneyness_params
|
|
342
|
+
)
|
|
343
|
+
|
|
344
|
+
return {
|
|
345
|
+
'moneyness_grid': moneyness_grid,
|
|
346
|
+
'iv_surface': iv_surface
|
|
347
|
+
}
|
|
339
348
|
|
|
340
349
|
@staticmethod
|
|
341
350
|
def plot_model(fit_results: Dict[str, Any],
|
|
@@ -267,7 +267,7 @@ def fit_model(market_data: pd.DataFrame,
|
|
|
267
267
|
@catch_exception
|
|
268
268
|
def get_surface(param_matrix: pd.DataFrame,
|
|
269
269
|
moneyness_params: Tuple[float, float, int] = (-2, 2, 500)
|
|
270
|
-
) ->
|
|
270
|
+
) -> Dict[str, Any]:
|
|
271
271
|
"""
|
|
272
272
|
Generate implied volatility surface using optimized SVI parameters.
|
|
273
273
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|