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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: voly
3
- Version: 0.0.17
3
+ Version: 0.0.19
4
4
  Summary: Options & volatility research package
5
5
  Author-email: Manu de Cara <manu.de.cara@gmail.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "voly"
7
- version = "0.0.17"
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.17"
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
- ) -> Tuple[np.ndarray, Dict[float, np.ndarray], np.ndarray]:
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
- return get_surface(param_matrix, moneyness_params)
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
- ) -> Tuple[np.ndarray, Dict[float, np.ndarray], np.ndarray]:
270
+ ) -> Dict[str, Any]:
271
271
  """
272
272
  Generate implied volatility surface using optimized SVI parameters.
273
273
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: voly
3
- Version: 0.0.17
3
+ Version: 0.0.19
4
4
  Summary: Options & volatility research package
5
5
  Author-email: Manu de Cara <manu.de.cara@gmail.com>
6
6
  License: MIT
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