voly 0.0.217__py3-none-any.whl → 0.0.219__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/fit.py +2 -2
- voly/models.py +3 -3
- {voly-0.0.217.dist-info → voly-0.0.219.dist-info}/METADATA +1 -1
- {voly-0.0.217.dist-info → voly-0.0.219.dist-info}/RECORD +7 -7
- {voly-0.0.217.dist-info → voly-0.0.219.dist-info}/WHEEL +0 -0
- {voly-0.0.217.dist-info → voly-0.0.219.dist-info}/licenses/LICENSE +0 -0
- {voly-0.0.217.dist-info → voly-0.0.219.dist-info}/top_level.txt +0 -0
voly/core/fit.py
CHANGED
@@ -181,7 +181,7 @@ class SVICalibrator:
|
|
181
181
|
**stats
|
182
182
|
}
|
183
183
|
|
184
|
-
logger.info(f'\033[32mSUCCESS\033[0m for {maturity}
|
184
|
+
logger.info(f'\033[32mSUCCESS\033[0m for {maturity}')
|
185
185
|
|
186
186
|
self.update_results(result)
|
187
187
|
return maturity
|
@@ -195,7 +195,7 @@ class SVICalibrator:
|
|
195
195
|
def fit_model(self):
|
196
196
|
"""Execute full SVI calibration process"""
|
197
197
|
start_time = time.time()
|
198
|
-
logger.info(f"
|
198
|
+
logger.info(f"Calibrating {self.currency} option chain data...")
|
199
199
|
logger.info("=================================================================")
|
200
200
|
|
201
201
|
# Process all maturities in parallel
|
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
|
|
@@ -2,19 +2,19 @@ voly/__init__.py,sha256=8xyDk7rFCn_MOD5hxuv5cxxKZvBVRiSIM7TgaMPpwpw,211
|
|
2
2
|
voly/client.py,sha256=0kp2_I-imcJ6uxMcvS0BipS2PgWdFaCPZG5335Vg75Q,14383
|
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
|
9
|
-
voly/core/fit.py,sha256=
|
9
|
+
voly/core/fit.py,sha256=bVyx7qMgFFpTUjgoCUs58ppmeNN2CORnqPKbGUpV9xw,14081
|
10
10
|
voly/core/hd.py,sha256=UFAyLncNUHivpPAcko6IK1bC55mudVtdlRFfXp63HXE,14771
|
11
11
|
voly/core/interpolate.py,sha256=JkK172-FXyhesW3hY4pEeuJWG3Bugq7QZXbeKoRpLuo,5305
|
12
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.219.dist-info/licenses/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
|
17
|
+
voly-0.0.219.dist-info/METADATA,sha256=Wb6kob5yD26TOnHR5ko2G8G0uP9LgaDwxIDjCVWHf2o,4115
|
18
|
+
voly-0.0.219.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
19
|
+
voly-0.0.219.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
|
20
|
+
voly-0.0.219.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|