voly 0.0.51__py3-none-any.whl → 0.0.52__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/data.py CHANGED
@@ -197,10 +197,11 @@ def process_option_chain(df: pd.DataFrame, currency: str) -> pd.DataFrame:
197
197
  logger.info(f"Processing data for {currency}...")
198
198
 
199
199
  # Apply extraction to create new columns
200
- df['currency'] = df['instrument_name'].split('-')[0]
201
- df['maturity_name'] = df['instrument_name'].split('-')[1]
202
- df['strike'] = df['instrument_name'].split('-')[2]
203
- df['option_type'] = df['instrument_name'].split('-')[3]
200
+ splits = df['instrument_name'].str.split('-')
201
+ df['currency'] = splits.str[0]
202
+ df['maturity_name'] = splits.str[1]
203
+ df['strike'] = splits.str[2]
204
+ df['option_type'] = splits.str[3]
204
205
 
205
206
  # Create maturity date at 8:00 AM UTC
206
207
  df['maturity_date'] = pd.to_datetime(df['maturity_name'].apply(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: voly
3
- Version: 0.0.51
3
+ Version: 0.0.52
4
4
  Summary: Options & volatility research package
5
5
  Author-email: Manu de Cara <manu.de.cara@gmail.com>
6
6
  License: MIT
@@ -5,14 +5,14 @@ voly/formulas.py,sha256=Xgaq4lx1fNzRfu9W84fMNeH6GRJ0FNFNUUUYn5ffjjE,8843
5
5
  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
- voly/core/data.py,sha256=gEtmsp-cgCSdAWhnCrOHjrjUTfGJ_1NWkIEeHAkNkAg,8904
8
+ voly/core/data.py,sha256=yKPEVf4923OdoyFYxKouqJEntDAoTQFME25WJQx0oPk,8866
9
9
  voly/core/fit.py,sha256=PCKedwjY2Xsl_Gv9t46dAnEnFbz0T1oJsZsb__GWCSw,9878
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.51.dist-info/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
15
- voly-0.0.51.dist-info/METADATA,sha256=FCA6dznopdWOB3Yt7cwscidzTclrUT4og6kHq3F5xUY,4092
16
- voly-0.0.51.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
17
- voly-0.0.51.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
18
- voly-0.0.51.dist-info/RECORD,,
14
+ voly-0.0.52.dist-info/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
15
+ voly-0.0.52.dist-info/METADATA,sha256=9Egf3qNM1dUcZ7dpxkn_HFAB7poVZoLyaVhm4rebFGQ,4092
16
+ voly-0.0.52.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
17
+ voly-0.0.52.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
18
+ voly-0.0.52.dist-info/RECORD,,
File without changes
File without changes