voly 0.0.56__py3-none-any.whl → 0.0.58__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
@@ -84,7 +84,7 @@ def fit_svi_parameters(market_data: pd.DataFrame,
84
84
  'mae': [],
85
85
  'r2': [],
86
86
  'max_error': [],
87
- 'n_point': []
87
+ 'n_points': []
88
88
  }
89
89
 
90
90
  # Dictionary to store parameters
@@ -159,7 +159,7 @@ def fit_svi_parameters(market_data: pd.DataFrame,
159
159
  logger.info('-------------------------------------')
160
160
 
161
161
  # Create DataFrame with all fit performance data
162
- fit_performance = pd.DataFrame(fit_data)
162
+ fit_performance = pd.DataFrame(fit_data).T
163
163
 
164
164
  return fit_performance, params_dict
165
165
 
@@ -287,8 +287,8 @@ def get_iv_surface(fit_results: Dict[str, Any],
287
287
  log_moneyness_array = np.linspace(min_m, max_m, num=num_points)
288
288
 
289
289
  # Get YTM values from the parameter matrix attributes
290
- ytm_values = fit_results['fit_performance']['ytm']
291
- maturity_values = fit_results['fit_performance']['maturity_name']
290
+ ytm_values = fit_results['fit_performance'].loc['ytm'].values
291
+ maturity_values = fit_results['fit_performance'].loc['maturity_name'].values
292
292
  raw_params_matrix = fit_results['raw_params_matrix']
293
293
 
294
294
  # Generate implied volatility for each maturity
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: voly
3
- Version: 0.0.56
3
+ Version: 0.0.58
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=LXXIlpXZQEfXTuCngxC8Hd3bWtw6wdXDCSGxTLmHM-c,3659
6
6
  voly/core/__init__.py,sha256=bu6fS2I1Pj9fPPnl-zY3L7NqrZSY5Zy6NY2uMUvdhKs,183
7
7
  voly/core/charts.py,sha256=T8cogkiHj8NcFxfARumNvAjLJUAxsMlHUOVgshwjye8,26474
8
8
  voly/core/data.py,sha256=e8qBArubNqPkrfuIYB_q2WhRf7TKzA4Z3FhMC-xyLEE,8862
9
- voly/core/fit.py,sha256=UcRKey3k9PpYLKboqwVIe7I_057M3ji_xszkP3MmDTE,9893
9
+ voly/core/fit.py,sha256=KfEGUlnhlSvAKLHB9Kv4iIoBim6ueKOlxOFfGwQkW1E,9918
10
10
  voly/core/interpolate.py,sha256=ztVIePJZOh-CIbn69wkh1JW2rKywNe2FEewRN0zcSAo,8185
11
11
  voly/core/rnd.py,sha256=8FTU-Qp9epW9yE4XSOdiFGIRXrGyXqF6mVgZn1NMvxk,11813
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.56.dist-info/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
15
- voly-0.0.56.dist-info/METADATA,sha256=e5yauzYAEi2Sm2VZt8fbqSA1DX0nvQ_yagjC0IITw6Q,4092
16
- voly-0.0.56.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
17
- voly-0.0.56.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
18
- voly-0.0.56.dist-info/RECORD,,
14
+ voly-0.0.58.dist-info/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
15
+ voly-0.0.58.dist-info/METADATA,sha256=5CLCAyGSYeY2wlg4Rgm9IaHlNWJDGcU6dW1eA6iKrZY,4092
16
+ voly-0.0.58.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
17
+ voly-0.0.58.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
18
+ voly-0.0.58.dist-info/RECORD,,
File without changes
File without changes