voly 0.0.90__py3-none-any.whl → 0.0.92__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/charts.py CHANGED
@@ -405,7 +405,7 @@ def plot_3d_surface(x_surface: Dict[str, np.ndarray],
405
405
  template='plotly_dark',
406
406
  scene=dict(
407
407
  xaxis_title=domain_labels.get(return_domain, 'X Domain'),
408
- yaxis_title='Days to Expiry',
408
+ yaxis_title='Years to Expiry',
409
409
  zaxis_title='Implied Volatility (%)',
410
410
  aspectratio=dict(x=1, y=1, z=0.7)
411
411
  ),
voly/core/data.py CHANGED
@@ -224,6 +224,8 @@ def process_option_chain(df: pd.DataFrame, currency: str) -> pd.DataFrame:
224
224
  df['log_moneyness'] = np.log(df['index_price'] / df['strikes'])
225
225
  # Calculate moneyness
226
226
  df['moneyness'] = np.exp(df['log_moneyness'])
227
+ # Calculate returns
228
+ df['returns'] = df['moneyness'] - 1
227
229
 
228
230
  logger.info(f"Processing complete!")
229
231
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: voly
3
- Version: 0.0.90
3
+ Version: 0.0.92
4
4
  Summary: Options & volatility research package
5
5
  Author-email: Manu de Cara <manu.de.cara@gmail.com>
6
6
  License: MIT
@@ -4,15 +4,15 @@ voly/exceptions.py,sha256=PBsbn1vNMvKcCJwwJ4lBO6glD85jo1h2qiEmD7ArAjs,92
4
4
  voly/formulas.py,sha256=6T0CuCtJpDp8nq0MUJ_3fA_su8nL4yfCU2H3m3_Sc_s,11699
5
5
  voly/models.py,sha256=Vs69QZYQ_Tt6hkaZ6Mfnq3II1dHDqQrZTzBNiaOIbwo,3516
6
6
  voly/core/__init__.py,sha256=bu6fS2I1Pj9fPPnl-zY3L7NqrZSY5Zy6NY2uMUvdhKs,183
7
- voly/core/charts.py,sha256=5PgunB8oVPoD5R9eIjc9efCbc6d9C5yswO2yG1qj8uo,12734
8
- voly/core/data.py,sha256=OzWbzmMQN4CEG8lUdwMK2RrnvEjkJrNcMDMv4JDRewA,8871
7
+ voly/core/charts.py,sha256=E21OZB5lTY4YL2flgaFJ6s5g3_ExtAQT2zryZZxLPyM,12735
8
+ voly/core/data.py,sha256=pDeuYhP0GX4RbtlqByvsE3rfHcIkix0BU5MLW8sKIeI,8935
9
9
  voly/core/fit.py,sha256=VkvuFYE1e_CfdH4-zg32CNYtkhyKOEsZ3-RMWO16My0,9247
10
10
  voly/core/interpolate.py,sha256=JkK172-FXyhesW3hY4pEeuJWG3Bugq7QZXbeKoRpLuo,5305
11
11
  voly/core/rnd.py,sha256=yNkQuiiw--exiJLHa9Wd9zy5sZN5_QJ3itKmr04zg-Q,10047
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.90.dist-info/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
15
- voly-0.0.90.dist-info/METADATA,sha256=nh-0XhZV42gnuTjWJhkmV6YxefEg-r757Jbflh-AvRE,4092
16
- voly-0.0.90.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
17
- voly-0.0.90.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
18
- voly-0.0.90.dist-info/RECORD,,
14
+ voly-0.0.92.dist-info/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
15
+ voly-0.0.92.dist-info/METADATA,sha256=LS1p-ePGx4N8leytNFh3yXcmVMMFmX6rrLy1cpAMMbQ,4092
16
+ voly-0.0.92.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
17
+ voly-0.0.92.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
18
+ voly-0.0.92.dist-info/RECORD,,
File without changes
File without changes