voly 0.0.213__py3-none-any.whl → 0.0.215__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/core/rnd.py +4 -6
- {voly-0.0.213.dist-info → voly-0.0.215.dist-info}/METADATA +1 -1
- {voly-0.0.213.dist-info → voly-0.0.215.dist-info}/RECORD +6 -6
- {voly-0.0.213.dist-info → voly-0.0.215.dist-info}/WHEEL +0 -0
- {voly-0.0.213.dist-info → voly-0.0.215.dist-info}/licenses/LICENSE +0 -0
- {voly-0.0.213.dist-info → voly-0.0.215.dist-info}/top_level.txt +0 -0
voly/core/rnd.py
CHANGED
@@ -59,7 +59,6 @@ def breeden(domain_params, s, r, o, t, return_domain):
|
|
59
59
|
rnd_k = np.maximum(np.exp(r * t) * c2, 0)
|
60
60
|
|
61
61
|
# Transform to log-moneyness domain first
|
62
|
-
LM = domains['log_moneyness']
|
63
62
|
rnd_lm = rnd_k * K # Convert to log-moneyness domain
|
64
63
|
pdf_lm = normalize_density(rnd_lm, dx)
|
65
64
|
|
@@ -161,7 +160,6 @@ def rookley(domain_params, s, r, o, t, return_domain):
|
|
161
160
|
rnd_k = np.maximum(ert * s * dd_c_K, 0)
|
162
161
|
|
163
162
|
# Transform to log-moneyness domain first
|
164
|
-
LM = domains['log_moneyness']
|
165
163
|
rnd_lm = rnd_k * K # Convert to log-moneyness domain
|
166
164
|
pdf_lm = normalize_density(rnd_lm, dx)
|
167
165
|
|
@@ -329,7 +327,7 @@ def get_rnd_surface(model_results: pd.DataFrame,
|
|
329
327
|
Dictionary containing pdf_surface, cdf_surface, x_surface, and moments
|
330
328
|
"""
|
331
329
|
# Validate inputs
|
332
|
-
required_columns = ['s', '
|
330
|
+
required_columns = ['s', 't', 'r', 'a', 'b', 'm', 'm', 'sigma']
|
333
331
|
missing_columns = [col for col in required_columns if col not in model_results.columns]
|
334
332
|
if missing_columns:
|
335
333
|
raise VolyError(f"Required columns missing in model_results: {missing_columns}")
|
@@ -359,9 +357,9 @@ def get_rnd_surface(model_results: pd.DataFrame,
|
|
359
357
|
params = [
|
360
358
|
model_results.loc[i, 'a'],
|
361
359
|
model_results.loc[i, 'b'],
|
362
|
-
model_results.loc[i, '
|
360
|
+
model_results.loc[i, 'm'],
|
363
361
|
model_results.loc[i, 'rho'],
|
364
|
-
model_results.loc[i, '
|
362
|
+
model_results.loc[i, 'sigma']
|
365
363
|
]
|
366
364
|
s = model_results.loc[i, 's']
|
367
365
|
r = model_results.loc[i, 'r']
|
@@ -369,7 +367,7 @@ def get_rnd_surface(model_results: pd.DataFrame,
|
|
369
367
|
|
370
368
|
# Calculate implied volatility surface from SVI parameters
|
371
369
|
LM = np.linspace(domain_params[0], domain_params[1], domain_params[2])
|
372
|
-
w =
|
370
|
+
w = SVIModel.svi(LM, *params)
|
373
371
|
o = np.sqrt(w / t)
|
374
372
|
|
375
373
|
# Calculate RND using the selected method
|
@@ -9,12 +9,12 @@ voly/core/data.py,sha256=SNF87C7-r-1IbKwf7rAhXkJ6X305yo7fCDJDdkwz3NM,14103
|
|
9
9
|
voly/core/fit.py,sha256=XlqMfVC4EUC0YmmQU-Za_4SSVoQsa6ndT6AWXgdWVFU,14192
|
10
10
|
voly/core/hd.py,sha256=UFAyLncNUHivpPAcko6IK1bC55mudVtdlRFfXp63HXE,14771
|
11
11
|
voly/core/interpolate.py,sha256=JkK172-FXyhesW3hY4pEeuJWG3Bugq7QZXbeKoRpLuo,5305
|
12
|
-
voly/core/rnd.py,sha256=
|
12
|
+
voly/core/rnd.py,sha256=wiZ5OIjPDf1Th5_sQ9CZG5JgAo3EL8f63T_Rj1_VP-0,13214
|
13
13
|
voly/utils/__init__.py,sha256=E05mWatyC-PDOsCxQV1p5Xi1IgpOomxrNURyCx_gB-w,200
|
14
14
|
voly/utils/density.py,sha256=ONpRli-IaJDgOZ2sb27HHFc9_tkkGSATKl94JODd86A,5879
|
15
15
|
voly/utils/logger.py,sha256=4-_2bVJmq17Q0d7Rd2mPg1AeR8gxv6EPvcmBDMFWcSM,1744
|
16
|
-
voly-0.0.
|
17
|
-
voly-0.0.
|
18
|
-
voly-0.0.
|
19
|
-
voly-0.0.
|
20
|
-
voly-0.0.
|
16
|
+
voly-0.0.215.dist-info/licenses/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
|
17
|
+
voly-0.0.215.dist-info/METADATA,sha256=BTY_qtByAPXOf28SBPF86KnXAR1zh4hjozSDSbBxf5Y,4115
|
18
|
+
voly-0.0.215.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
19
|
+
voly-0.0.215.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
|
20
|
+
voly-0.0.215.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|