voly 0.0.2__tar.gz → 0.0.3__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.2
3
+ Version: 0.0.3
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.2"
7
+ version = "0.0.3"
8
8
  description = "Options & volatility research package"
9
9
  readme = "README.md"
10
10
  authors = [
@@ -61,7 +61,7 @@ line_length = 100
61
61
  multi_line_output = 3
62
62
 
63
63
  [tool.mypy]
64
- python_version = "0.0.2"
64
+ python_version = "0.0.3"
65
65
  warn_return_any = true
66
66
  warn_unused_configs = true
67
67
  disallow_untyped_defs = true
@@ -12,10 +12,10 @@ from typing import Dict, List, Tuple, Optional, Union, Any, Callable
12
12
  import plotly.graph_objects as go
13
13
 
14
14
  from voly.utils.logger import logger, catch_exception, setup_file_logging
15
- from voly.exceptions import VolyError, ValidationError, DataError
15
+ from voly.exceptions import VolyError
16
16
  from voly.models import SVIModel
17
17
  from voly.formulas import (
18
- bs, delta, gamma, vega, theta, rho, vanna, volga, charm, greeks, iv, implied_underlying
18
+ bs, delta, gamma, vega, theta, rho, vanna, volga, charm, greeks, iv
19
19
  )
20
20
  from voly.core.data import fetch_option_chain, process_option_chain
21
21
  from voly.core.fit import fit_model
@@ -390,7 +390,7 @@ class VolyClient:
390
390
  # Use first maturity if not specified
391
391
  maturity = list(rnd_surface.keys())[0]
392
392
  elif maturity not in rnd_surface:
393
- raise ValidationError(f"Maturity '{maturity}' not found in RND results")
393
+ raise VolyError(f"Maturity '{maturity}' not found in RND results")
394
394
 
395
395
  # Get RND values for the selected maturity
396
396
  rnd_values = rnd_surface[maturity]
@@ -438,7 +438,7 @@ class VolyClient:
438
438
  # Use first maturity if not specified
439
439
  maturity = list(rnd_surface.keys())[0]
440
440
  elif maturity not in rnd_surface:
441
- raise ValidationError(f"Maturity '{maturity}' not found in RND results")
441
+ raise VolyError(f"Maturity '{maturity}' not found in RND results")
442
442
 
443
443
  # Get RND values for the selected maturity
444
444
  rnd_values = rnd_surface[maturity]
@@ -477,7 +477,7 @@ class VolyClient:
477
477
  - Probability (0 to 1)
478
478
  """
479
479
  if direction not in ['above', 'below']:
480
- raise ValidationError("Direction must be 'above' or 'below'")
480
+ raise VolyError("Direction must be 'above' or 'below'")
481
481
 
482
482
  # Extract required data
483
483
  moneyness_grid = rnd_results['moneyness_grid']
@@ -489,7 +489,7 @@ class VolyClient:
489
489
  # Use first maturity if not specified
490
490
  maturity = list(rnd_surface.keys())[0]
491
491
  elif maturity not in rnd_surface:
492
- raise ValidationError(f"Maturity '{maturity}' not found in RND results")
492
+ raise VolyError(f"Maturity '{maturity}' not found in RND results")
493
493
 
494
494
  # Get RND values for the selected maturity
495
495
  rnd_values = rnd_surface[maturity]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: voly
3
- Version: 0.0.2
3
+ Version: 0.0.3
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
File without changes
File without changes
File without changes