voly 0.0.77__tar.gz → 0.0.78__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.77
3
+ Version: 0.0.78
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.77"
7
+ version = "0.0.78"
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.77"
63
+ python_version = "0.0.78"
64
64
  warn_return_any = true
65
65
  warn_unused_configs = true
66
66
  disallow_untyped_defs = true
@@ -200,7 +200,7 @@ def process_option_chain(df: pd.DataFrame, currency: str) -> pd.DataFrame:
200
200
  splits = df['instrument_name'].str.split('-')
201
201
  df['currency'] = splits.str[0]
202
202
  df['maturity_name'] = splits.str[1]
203
- df['strike'] = splits.str[2].astype(float)
203
+ df['strikes'] = splits.str[2].astype(float)
204
204
  df['option_type'] = splits.str[3]
205
205
 
206
206
  # Create maturity date at 8:00 AM UTC
@@ -224,7 +224,7 @@ def process_option_chain(df: pd.DataFrame, currency: str) -> pd.DataFrame:
224
224
  df['ask_iv'] = df['ask_iv'].replace({0: np.nan}) / 100
225
225
 
226
226
  # Calculate log-moneyness
227
- df['log_moneyness'] = np.log(df['index_price'] / df['strike'])
227
+ df['log_moneyness'] = np.log(df['index_price'] / df['strikes'])
228
228
  # Calculate moneyness
229
229
  df['moneyness'] = np.exp(df['log_moneyness'])
230
230
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: voly
3
- Version: 0.0.77
3
+ Version: 0.0.78
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