voly 0.0.14__py3-none-any.whl → 0.0.15__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 CHANGED
@@ -76,6 +76,7 @@ def fit_svi_parameters(market_data: pd.DataFrame,
76
76
  fit_data = {
77
77
  'Maturity': [],
78
78
  'DTE': [],
79
+ 'YTE': [],
79
80
  'Success': [],
80
81
  'Cost': [],
81
82
  'Optimality': [],
@@ -116,7 +117,8 @@ def fit_svi_parameters(market_data: pd.DataFrame,
116
117
  params = result.x
117
118
  params_dict[maturity_name] = {
118
119
  'params': params,
119
- 'dte': dte_value
120
+ 'dte': dte_value,
121
+ 'yte': yte
120
122
  }
121
123
 
122
124
  # Calculate model predictions for statistics
@@ -131,9 +133,10 @@ def fit_svi_parameters(market_data: pd.DataFrame,
131
133
  max_error = np.max(np.abs(iv_market - iv_model))
132
134
  num_points = len(expiry_data)
133
135
 
134
- # Add to fit data
136
+ # Add to fit data - make sure all arrays get the same number of items
135
137
  fit_data['Maturity'].append(maturity_name)
136
138
  fit_data['DTE'].append(dte_value)
139
+ fit_data['YTE'].append(yte)
137
140
  fit_data['Success'].append(result.success)
138
141
  fit_data['Cost'].append(result.cost)
139
142
  fit_data['Optimality'].append(result.optimality)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: voly
3
- Version: 0.0.14
3
+ Version: 0.0.15
4
4
  Summary: Options & volatility research package
5
5
  Author-email: Manu de Cara <manu.de.cara@gmail.com>
6
6
  License: MIT
@@ -6,13 +6,13 @@ voly/models.py,sha256=YJ12aamLz_-aOni4Qm0_XV9u4bjKK3vfJz0J2gc1h0o,3565
6
6
  voly/core/__init__.py,sha256=GU6l7hpxJfitPx9jnmBtcb_QIeqOO8liZsSbLXXSbq8,384
7
7
  voly/core/charts.py,sha256=GF55IS-aZfcc_0yoSPRPIPBPcJhFD1El18wNCo_mI_A,29918
8
8
  voly/core/data.py,sha256=Dfk-ByHpdteUiLXr0p-wRLr3VAmdyjdDBKwjwdTgCjA,9939
9
- voly/core/fit.py,sha256=pqHZVPKZhDYWR-SglD866W-PneXuOiwvn-DxGytq93c,9790
9
+ voly/core/fit.py,sha256=Jub2AXk1UNB9Z_yEziwdF4VnvO4gPphJZk5IF35JzqA,9921
10
10
  voly/core/interpolate.py,sha256=ztVIePJZOh-CIbn69wkh1JW2rKywNe2FEewRN0zcSAo,8185
11
11
  voly/core/rnd.py,sha256=-xBVzvM9sMIBtfOfWyBJKtiVcBShSGTNNp2PZFOD5j0,12155
12
12
  voly/utils/__init__.py,sha256=E05mWatyC-PDOsCxQV1p5Xi1IgpOomxrNURyCx_gB-w,200
13
13
  voly/utils/logger.py,sha256=4-_2bVJmq17Q0d7Rd2mPg1AeR8gxv6EPvcmBDMFWcSM,1744
14
- voly-0.0.14.dist-info/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
15
- voly-0.0.14.dist-info/METADATA,sha256=N7DYJ9IWB7df1Lf3-Uuodlw4Ls-ar448dCHTP-INxjg,4092
16
- voly-0.0.14.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
17
- voly-0.0.14.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
18
- voly-0.0.14.dist-info/RECORD,,
14
+ voly-0.0.15.dist-info/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
15
+ voly-0.0.15.dist-info/METADATA,sha256=CESD-Z96BvXD6-_JZq3xa5Xx91h0qaijMh_3o1Rqb_w,4092
16
+ voly-0.0.15.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
17
+ voly-0.0.15.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
18
+ voly-0.0.15.dist-info/RECORD,,
File without changes
File without changes