voly 0.0.13__tar.gz → 0.0.15__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: voly
3
- Version: 0.0.13
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "voly"
7
- version = "0.0.13"
7
+ version = "0.0.15"
8
8
  description = "Options & volatility research package"
9
9
  readme = "README.md"
10
10
  authors = [
@@ -60,7 +60,7 @@ line_length = 100
60
60
  multi_line_output = 3
61
61
 
62
62
  [tool.mypy]
63
- python_version = "0.0.13"
63
+ python_version = "0.0.15"
64
64
  warn_return_any = true
65
65
  warn_unused_configs = true
66
66
  disallow_untyped_defs = true
@@ -117,7 +117,8 @@ def fit_svi_parameters(market_data: pd.DataFrame,
117
117
  params = result.x
118
118
  params_dict[maturity_name] = {
119
119
  'params': params,
120
- 'dte': dte_value
120
+ 'dte': dte_value,
121
+ 'yte': yte
121
122
  }
122
123
 
123
124
  # Calculate model predictions for statistics
@@ -132,9 +133,10 @@ def fit_svi_parameters(market_data: pd.DataFrame,
132
133
  max_error = np.max(np.abs(iv_market - iv_model))
133
134
  num_points = len(expiry_data)
134
135
 
135
- # Add to fit data
136
+ # Add to fit data - make sure all arrays get the same number of items
136
137
  fit_data['Maturity'].append(maturity_name)
137
138
  fit_data['DTE'].append(dte_value)
139
+ fit_data['YTE'].append(yte)
138
140
  fit_data['Success'].append(result.success)
139
141
  fit_data['Cost'].append(result.cost)
140
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.13
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes