cryptodatapy 0.2.1__py3-none-any.whl → 0.2.3__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.
- cryptodatapy/.DS_Store +0 -0
- cryptodatapy/conf/fx_tickers.csv +31 -0
- cryptodatapy/conf/tickers.csv +6 -0
- cryptodatapy/extract/libraries/ccxt_api.py +81 -60
- cryptodatapy/extract/libraries/library.py +19 -8
- cryptodatapy/transform/clean.py +136 -173
- cryptodatapy/transform/clean_perp_futures_ohlcv.ipynb +1639 -0
- cryptodatapy/transform/filter.py +56 -143
- cryptodatapy/transform/impute.py +36 -83
- cryptodatapy/transform/od.py +221 -450
- cryptodatapy/transform/wrangle.py +2 -4
- {cryptodatapy-0.2.1.dist-info → cryptodatapy-0.2.3.dist-info}/METADATA +1 -1
- {cryptodatapy-0.2.1.dist-info → cryptodatapy-0.2.3.dist-info}/RECORD +15 -13
- {cryptodatapy-0.2.1.dist-info → cryptodatapy-0.2.3.dist-info}/LICENSE +0 -0
- {cryptodatapy-0.2.1.dist-info → cryptodatapy-0.2.3.dist-info}/WHEEL +0 -0
@@ -750,14 +750,12 @@ class WrangleData:
|
|
750
750
|
if 'close' in self.data_resp.columns:
|
751
751
|
self.data_resp['date'] = pd.to_datetime(self.data_resp.date, unit='ms')
|
752
752
|
elif 'funding_rate' in self.data_resp.columns:
|
753
|
-
self.data_resp['date'] = pd.to_datetime(self.data_resp.set_index('date').index).
|
754
|
-
floor('S').tz_localize(None)
|
753
|
+
self.data_resp['date'] = pd.to_datetime(self.data_resp.set_index('date').index).floor('s').tz_localize(None)
|
755
754
|
# set index
|
756
755
|
self.data_resp = self.data_resp.set_index('date').sort_index()
|
757
756
|
# resample
|
758
757
|
if 'funding_rate' in self.data_resp.columns and self.data_req.freq in ['d', 'w', 'm', 'q', 'y']:
|
759
|
-
self.data_resp = (self.data_resp.funding_rate + 1).
|
760
|
-
diff().to_frame()
|
758
|
+
self.data_resp = ((self.data_resp.funding_rate + 1).resample(self.data_req.freq).prod() - 1).to_frame()
|
761
759
|
# type conversion
|
762
760
|
self.data_resp = self.data_resp.apply(pd.to_numeric, errors='coerce').convert_dtypes()
|
763
761
|
# remove bad data
|
@@ -1,4 +1,4 @@
|
|
1
|
-
cryptodatapy/.DS_Store,sha256=
|
1
|
+
cryptodatapy/.DS_Store,sha256=PAgbS0KIr24oqHYVH0XcuP_rM0ytXS0FIC_Y5fwb5wI,6148
|
2
2
|
cryptodatapy/.idea/.gitignore,sha256=qeVPxPCLyX2CwEvYb_N9OvhLqe9K2H_Py0ONq2Iuiqo,47
|
3
3
|
cryptodatapy/.idea/cryptodatapy.iml,sha256=w0TW3o9qEaYr1iYR1jwYqlUBYm3KyxgnCK1PD03XvwQ,441
|
4
4
|
cryptodatapy/.idea/csv-plugin.xml,sha256=kVn-REwnZha3y9sWKgqBd0RKNDr0acmLVCntWaqbMuw,392
|
@@ -10,7 +10,8 @@ cryptodatapy/.idea/vcs.xml,sha256=b_39r807_tBAMOSSbIxyjQKeZsNYXTI-_FCT1j3FXuE,18
|
|
10
10
|
cryptodatapy/__init__.py,sha256=ee1UaINHZn1A_SZ96XM3hCguQEJgiPTvKlnYsk3mmS4,185
|
11
11
|
cryptodatapy/conf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
12
|
cryptodatapy/conf/fields.csv,sha256=6gl7HSZyuNeDMEuaxn4XzMZdRfF2bjGFob3Th5olfko,25717
|
13
|
-
cryptodatapy/conf/
|
13
|
+
cryptodatapy/conf/fx_tickers.csv,sha256=vqbY93_6Zi4vXg8iu0veXZ-NDm_NV2rrmb5lNYRqNUA,288
|
14
|
+
cryptodatapy/conf/tickers.csv,sha256=9rMQvB_SgKiH-zoBNMEFK_fpznDIN9lU-xt0mD12aII,357205
|
14
15
|
cryptodatapy/datasets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
15
16
|
cryptodatapy/datasets/br_econ_calendar.csv,sha256=mSM0IOIByI-0gIIL1CbDQPqHYI5lK6vavrY1ODj3Jlk,1185318
|
16
17
|
cryptodatapy/datasets/ca_econ_calendar.csv,sha256=GtoopEhCSufBNjpAi2BiorSsm4RmoK5dfZe8lkOS-Jc,1521808
|
@@ -44,25 +45,26 @@ cryptodatapy/extract/data_vendors/tiingo_api.py,sha256=dUovHL3HfB5jFWxfUxMCYULTZ
|
|
44
45
|
cryptodatapy/extract/datarequest.py,sha256=0TdzpU0FbbLPQlFzFDOl-5masYy76n--F_DNUm5S68Q,18139
|
45
46
|
cryptodatapy/extract/getdata.py,sha256=HzWQyacfmphms97LVKbx1gEgcgsQJViBT4BBxL9TBXk,8703
|
46
47
|
cryptodatapy/extract/libraries/__init__.py,sha256=9rJ_hFHWlvkPwyIkNG5bqH6HTY2jQNPIKQjzYEsVSDo,319
|
47
|
-
cryptodatapy/extract/libraries/ccxt_api.py,sha256=
|
48
|
+
cryptodatapy/extract/libraries/ccxt_api.py,sha256=3y4egw71fSp9It9m2gRxBssIdLtJfwtL5rqQtYu5LYM,28205
|
48
49
|
cryptodatapy/extract/libraries/dbnomics_api.py,sha256=M6kPIH-hKqkmeBQb-g56dY9jatqLCtSl_MnvPblHtAc,9421
|
49
50
|
cryptodatapy/extract/libraries/investpy_api.py,sha256=qtGm3LDluXxJorvFv0w1bm1oBrcZIfE5cZSYzNYvttY,18409
|
50
|
-
cryptodatapy/extract/libraries/library.py,sha256=
|
51
|
+
cryptodatapy/extract/libraries/library.py,sha256=070YsO1RJzm4z_enhCjqe5hrj8qsk-Ni0Q_QKoAwQ6U,12316
|
51
52
|
cryptodatapy/extract/libraries/pandasdr_api.py,sha256=GdNi7ybPqSD2ieuUaaIyhTSmZG-YchMs_P4WQIy5JBw,12943
|
52
53
|
cryptodatapy/extract/web/__init__.py,sha256=8i0fweCeqSpdiPf-47jT240I4ca6SizCu9aD-qDS67w,89
|
53
54
|
cryptodatapy/extract/web/aqr.py,sha256=LS1D7QzG6UWkLUfDMgBFtiHpznnnAUOpec5Sx3vRGME,11875
|
54
55
|
cryptodatapy/extract/web/web.py,sha256=27cAzlIyYn6R29726J7p9NhSwHypas9EQSjHLILtcjk,9748
|
55
56
|
cryptodatapy/transform/__init__.py,sha256=Spb5cGJ3V_o8hgSWOSrF8J_vsSZpFk0uzW7RpkgfbFE,131
|
56
|
-
cryptodatapy/transform/clean.py,sha256=
|
57
|
+
cryptodatapy/transform/clean.py,sha256=rWxEnNIGs28k8x5Hmvo1VcDRtu1-ys0p6M8AO0hDikE,11493
|
58
|
+
cryptodatapy/transform/clean_perp_futures_ohlcv.ipynb,sha256=9UNGJCgDZrpPbcoGh2kol_Mt20bf572IHgcPKxzqJ5M,52671
|
57
59
|
cryptodatapy/transform/convertparams.py,sha256=WuQuPxKkjBy85F4NCYdSLWIls-1Avltu6EoaSIu7AYc,44285
|
58
|
-
cryptodatapy/transform/filter.py,sha256=
|
59
|
-
cryptodatapy/transform/impute.py,sha256=
|
60
|
-
cryptodatapy/transform/od.py,sha256=
|
61
|
-
cryptodatapy/transform/wrangle.py,sha256=
|
60
|
+
cryptodatapy/transform/filter.py,sha256=AArjX0ccYs6NVwoTSrj7G3RvBlqSseQcSDT5B9eXmCY,8030
|
61
|
+
cryptodatapy/transform/impute.py,sha256=c7qdgFg0qs_xuQnX0jazpt0wgASC0KElLZRuxTkeVKY,5519
|
62
|
+
cryptodatapy/transform/od.py,sha256=LHCzs-Q1hWHixWaQLhnHRacI-sVNlLX_EFv4jOpp4Zk,31008
|
63
|
+
cryptodatapy/transform/wrangle.py,sha256=cBPV2Ub4RmVCdFdx3UlOlI2s4Rc_zzoMAXWcJvqbehs,40157
|
62
64
|
cryptodatapy/util/__init__.py,sha256=zSQ2HU2QIXzCuptJjknmrClwtQKCvIj4aNysZljIgrU,116
|
63
65
|
cryptodatapy/util/datacatalog.py,sha256=qCCX6srXvaAbVAKuA0M2y5IK_2OEx5xA3yRahDZlC-g,13157
|
64
66
|
cryptodatapy/util/datacredentials.py,sha256=KkfJJqDr1jvzdlvpKNqrPwDvWyfbA5GDY87ZG3PHpIA,1510
|
65
|
-
cryptodatapy-0.2.
|
66
|
-
cryptodatapy-0.2.
|
67
|
-
cryptodatapy-0.2.
|
68
|
-
cryptodatapy-0.2.
|
67
|
+
cryptodatapy-0.2.3.dist-info/LICENSE,sha256=sw4oVq8bDjT3uMtaFebQ-xeIVP4H-bXldTs9q-Jjeks,11344
|
68
|
+
cryptodatapy-0.2.3.dist-info/WHEEL,sha256=y3eDiaFVSNTPbgzfNn0nYn5tEn1cX6WrdetDlQM4xWw,83
|
69
|
+
cryptodatapy-0.2.3.dist-info/METADATA,sha256=Z4P3NafpxStnr3crVtpMYJ2ZtPuOpcgqvSwrV2ka4oU,6188
|
70
|
+
cryptodatapy-0.2.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|