voly 0.0.218__py3-none-any.whl → 0.0.220__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/client.py +10 -7
- voly/models.py +3 -3
- {voly-0.0.218.dist-info → voly-0.0.220.dist-info}/METADATA +1 -1
- {voly-0.0.218.dist-info → voly-0.0.220.dist-info}/RECORD +7 -7
- {voly-0.0.218.dist-info → voly-0.0.220.dist-info}/WHEEL +0 -0
- {voly-0.0.218.dist-info → voly-0.0.220.dist-info}/licenses/LICENSE +0 -0
- {voly-0.0.218.dist-info → voly-0.0.220.dist-info}/top_level.txt +0 -0
voly/client.py
CHANGED
@@ -250,13 +250,16 @@ class VolyClient:
|
|
250
250
|
# Plot fit statistics
|
251
251
|
plots['fit_performance'] = plot_fit_performance(fit_results)
|
252
252
|
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
253
|
+
if return_domain != 'delta':
|
254
|
+
# Plot 3D surface
|
255
|
+
plots['surface_3d'] = plot_3d_surface(
|
256
|
+
x_surface=x_surface,
|
257
|
+
iv_surface=iv_surface,
|
258
|
+
fit_results=fit_results,
|
259
|
+
return_domain=return_domain
|
260
|
+
)
|
261
|
+
else:
|
262
|
+
pass
|
260
263
|
|
261
264
|
return plots
|
262
265
|
|
voly/models.py
CHANGED
@@ -176,11 +176,11 @@ class SVIModel:
|
|
176
176
|
w_current = cls.svi(k_constraint, new_params[0] * t, new_params[1] * t, *new_params[2:])
|
177
177
|
w_prev = cls.svi(k_constraint, a_prev * prev_t, b_prev * prev_t, m_prev, rho_prev, sigma_prev)
|
178
178
|
violation = np.min(w_current - w_prev)
|
179
|
-
logger.info(f"Calendar
|
179
|
+
logger.info(f"Calendar arb correction {'fixed' if violation >= -1e-6 else 'failed'} for t={t:.4f}, "
|
180
180
|
f"min margin={violation:.6f}")
|
181
181
|
return new_params
|
182
182
|
|
183
|
-
logger.error(f"Calendar
|
183
|
+
logger.error(f"Calendar arb correction failed for t={t:.4f}")
|
184
184
|
return params
|
185
185
|
|
186
186
|
@classmethod
|
@@ -222,7 +222,7 @@ class SVIModel:
|
|
222
222
|
w2 = cls.svi(k_val, a2 * t2, b2 * t2, m2, rho2, sigma2)
|
223
223
|
if w2 < w1 - 1e-6:
|
224
224
|
logger.warning(
|
225
|
-
f"Calendar
|
225
|
+
f"Calendar arb violation at t1={t1:.4f}, t2={t2:.4f}, k={k_val:.4f}: w1={w1:.6f}, w2={w2:.6f}")
|
226
226
|
return False
|
227
227
|
return True
|
228
228
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
voly/__init__.py,sha256=8xyDk7rFCn_MOD5hxuv5cxxKZvBVRiSIM7TgaMPpwpw,211
|
2
|
-
voly/client.py,sha256=
|
2
|
+
voly/client.py,sha256=BHcTRfoM2VLoBsMLmp0QGt4dlgrjZ0CdC0L4PeefUI0,14479
|
3
3
|
voly/exceptions.py,sha256=PBsbn1vNMvKcCJwwJ4lBO6glD85jo1h2qiEmD7ArAjs,92
|
4
4
|
voly/formulas.py,sha256=Jn9hBoIx6PGv9k4lm8PeGM4lxFJkrLau8LpnXatdQPM,11176
|
5
|
-
voly/models.py,sha256=
|
5
|
+
voly/models.py,sha256=CGJQr13Uie7iwtx2hjViN9lMXeRN_uOqzp4u8NPaTlA,9282
|
6
6
|
voly/core/__init__.py,sha256=bu6fS2I1Pj9fPPnl-zY3L7NqrZSY5Zy6NY2uMUvdhKs,183
|
7
7
|
voly/core/charts.py,sha256=2S-BfCo30aj1_xlNLqF-za5rQWxF_mWKIdtdOe5bgbw,12735
|
8
8
|
voly/core/data.py,sha256=SNF87C7-r-1IbKwf7rAhXkJ6X305yo7fCDJDdkwz3NM,14103
|
@@ -13,8 +13,8 @@ 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.220.dist-info/licenses/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
|
17
|
+
voly-0.0.220.dist-info/METADATA,sha256=rgHwubZX4cFKLWm7Cw2iPFDA6ClzR0GKx02d4HES6vY,4115
|
18
|
+
voly-0.0.220.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
19
|
+
voly-0.0.220.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
|
20
|
+
voly-0.0.220.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|