voly 0.0.206__tar.gz → 0.0.208__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.206/src/voly.egg-info → voly-0.0.208}/PKG-INFO +1 -1
- {voly-0.0.206 → voly-0.0.208}/pyproject.toml +2 -2
- {voly-0.0.206 → voly-0.0.208}/src/voly/core/charts.py +2 -2
- {voly-0.0.206 → voly-0.0.208}/src/voly/core/data.py +1 -1
- {voly-0.0.206 → voly-0.0.208/src/voly.egg-info}/PKG-INFO +1 -1
- {voly-0.0.206 → voly-0.0.208}/LICENSE +0 -0
- {voly-0.0.206 → voly-0.0.208}/README.md +0 -0
- {voly-0.0.206 → voly-0.0.208}/setup.cfg +0 -0
- {voly-0.0.206 → voly-0.0.208}/setup.py +0 -0
- {voly-0.0.206 → voly-0.0.208}/src/voly/__init__.py +0 -0
- {voly-0.0.206 → voly-0.0.208}/src/voly/client.py +0 -0
- {voly-0.0.206 → voly-0.0.208}/src/voly/core/__init__.py +0 -0
- {voly-0.0.206 → voly-0.0.208}/src/voly/core/fit.py +0 -0
- {voly-0.0.206 → voly-0.0.208}/src/voly/core/hd.py +0 -0
- {voly-0.0.206 → voly-0.0.208}/src/voly/core/interpolate.py +0 -0
- {voly-0.0.206 → voly-0.0.208}/src/voly/core/rnd.py +0 -0
- {voly-0.0.206 → voly-0.0.208}/src/voly/exceptions.py +0 -0
- {voly-0.0.206 → voly-0.0.208}/src/voly/formulas.py +0 -0
- {voly-0.0.206 → voly-0.0.208}/src/voly/models.py +0 -0
- {voly-0.0.206 → voly-0.0.208}/src/voly/utils/__init__.py +0 -0
- {voly-0.0.206 → voly-0.0.208}/src/voly/utils/density.py +0 -0
- {voly-0.0.206 → voly-0.0.208}/src/voly/utils/logger.py +0 -0
- {voly-0.0.206 → voly-0.0.208}/src/voly.egg-info/SOURCES.txt +0 -0
- {voly-0.0.206 → voly-0.0.208}/src/voly.egg-info/dependency_links.txt +0 -0
- {voly-0.0.206 → voly-0.0.208}/src/voly.egg-info/requires.txt +0 -0
- {voly-0.0.206 → voly-0.0.208}/src/voly.egg-info/top_level.txt +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.208"
|
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.208"
|
64
64
|
warn_return_any = true
|
65
65
|
warn_unused_configs = true
|
66
66
|
disallow_untyped_defs = true
|
@@ -63,8 +63,8 @@ def plot_volatility_smile(x_array: np.ndarray,
|
|
63
63
|
# Add market data if provided
|
64
64
|
if option_chain is not None and maturity is not None:
|
65
65
|
maturity_data = option_chain[option_chain['maturity_name'] == maturity]
|
66
|
-
if return_domain == 'delta':
|
67
|
-
|
66
|
+
#if return_domain == 'delta':
|
67
|
+
maturity_data = maturity_data[maturity_data['option_type'] == 'C']
|
68
68
|
|
69
69
|
if not maturity_data.empty:
|
70
70
|
# Add bid and ask IVs if available
|
@@ -223,7 +223,7 @@ def process_option_chain(df: pd.DataFrame, currency: str) -> pd.DataFrame:
|
|
223
223
|
df['ask_iv'] = df['ask_iv'].replace({0: np.nan}) / 100
|
224
224
|
|
225
225
|
# Calculate log-moneyness
|
226
|
-
df['log_moneyness'] = np.log(df['
|
226
|
+
df['log_moneyness'] = np.log(df['strikes'] / df['index_price'].iloc[0])
|
227
227
|
# Calculate moneyness
|
228
228
|
df['moneyness'] = np.exp(df['log_moneyness'])
|
229
229
|
# Calculate returns
|
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
|
File without changes
|