crypticorn 2.10.2__py3-none-any.whl → 2.10.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.
- crypticorn/metrics/main.py +6 -5
- {crypticorn-2.10.2.dist-info → crypticorn-2.10.3.dist-info}/METADATA +1 -1
- {crypticorn-2.10.2.dist-info → crypticorn-2.10.3.dist-info}/RECORD +7 -7
- {crypticorn-2.10.2.dist-info → crypticorn-2.10.3.dist-info}/WHEEL +0 -0
- {crypticorn-2.10.2.dist-info → crypticorn-2.10.3.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.10.2.dist-info → crypticorn-2.10.3.dist-info}/licenses/LICENSE +0 -0
- {crypticorn-2.10.2.dist-info → crypticorn-2.10.3.dist-info}/top_level.txt +0 -0
crypticorn/metrics/main.py
CHANGED
@@ -51,8 +51,12 @@ class MarketcapApiWrapper(MarketcapApi):
|
|
51
51
|
"""
|
52
52
|
pd = optional_import("pandas", "extra")
|
53
53
|
response = await self.get_marketcap_symbols(*args, **kwargs)
|
54
|
-
|
55
|
-
|
54
|
+
rows = []
|
55
|
+
for item in response:
|
56
|
+
row = {"timestamp": item.timestamp}
|
57
|
+
row.update({i+1: sym for i, sym in enumerate(item.symbols)})
|
58
|
+
rows.append(row)
|
59
|
+
df = pd.DataFrame(rows)
|
56
60
|
return df
|
57
61
|
|
58
62
|
|
@@ -100,9 +104,6 @@ class ExchangesApiWrapper(ExchangesApi):
|
|
100
104
|
cols = ["timestamp"] + sorted([col for col in df.columns if col != "timestamp"])
|
101
105
|
df = df[cols]
|
102
106
|
|
103
|
-
# Convert timestamp to unix timestamp
|
104
|
-
df["timestamp"] = pd.to_datetime(df["timestamp"]).astype("int64") // 10**9
|
105
|
-
|
106
107
|
# Convert exchange availability to boolean integers (0/1)
|
107
108
|
df = df.astype(
|
108
109
|
{
|
@@ -159,7 +159,7 @@ crypticorn/klines/client/models/symbol_type.py,sha256=uOEqlQJ714fa0SEYOxzCOx9cG-
|
|
159
159
|
crypticorn/klines/client/models/timeframe.py,sha256=bSZJz3Q78V1RAnm3ZDtGBzFOnDKE3Pc5A0eP3ky3KaI,760
|
160
160
|
crypticorn/klines/client/models/udf_config.py,sha256=cVSxnJrkwnS4p0fEUgZMekueDv28k-p58bZwvHMSmqc,5152
|
161
161
|
crypticorn/metrics/__init__.py,sha256=t7FrHV5PaVTka90eIxDgOaWvOiyznSStcUanSbLov2o,126
|
162
|
-
crypticorn/metrics/main.py,sha256=
|
162
|
+
crypticorn/metrics/main.py,sha256=KK7HazbkBEXSUUB4PRiNDV9-8r_p5Z4Znqt_SIr_jII,3575
|
163
163
|
crypticorn/metrics/client/__init__.py,sha256=zp5tyfddEBfFrCqp9YEAwObC60lZ0GnqO3dvsAOt1zE,2530
|
164
164
|
crypticorn/metrics/client/api_client.py,sha256=pGWJuO-mgxlUdhJGwkScf7CviGzjDrmUAiU0LXasQY4,26934
|
165
165
|
crypticorn/metrics/client/api_response.py,sha256=WhxwYDSMm6wPixp9CegO8dJzjFxDz3JF1yCq9s0ZqKE,639
|
@@ -259,9 +259,9 @@ crypticorn/trade/client/models/strategy_model_input.py,sha256=ala19jARyfA5ysys5D
|
|
259
259
|
crypticorn/trade/client/models/strategy_model_output.py,sha256=2o2lhbgUSTznowpMLEHF1Ex9TG9oRmzlCIb-gXqo7_s,5643
|
260
260
|
crypticorn/trade/client/models/tpsl.py,sha256=C2KgTIZs-a8W4msdaXgBKJcwtA-o5wR4rBauRP-iQxU,4317
|
261
261
|
crypticorn/trade/client/models/trading_action_type.py,sha256=pGq_TFLMPfYFizYP-xKgEC1ZF4U3lGdJYoGa_ZH2x-Q,769
|
262
|
-
crypticorn-2.10.
|
263
|
-
crypticorn-2.10.
|
264
|
-
crypticorn-2.10.
|
265
|
-
crypticorn-2.10.
|
266
|
-
crypticorn-2.10.
|
267
|
-
crypticorn-2.10.
|
262
|
+
crypticorn-2.10.3.dist-info/licenses/LICENSE,sha256=HonAVvzFXkP2C1d7D3ByIKPwjGH8NcHTAQvKH7uvOHQ,1856
|
263
|
+
crypticorn-2.10.3.dist-info/METADATA,sha256=_OszOOnOb4VBGZxrDlcRk16gnZqHiUWWSXAR8Bvq9J0,10125
|
264
|
+
crypticorn-2.10.3.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
265
|
+
crypticorn-2.10.3.dist-info/entry_points.txt,sha256=d_xHsGvUTebPveVUK0SrpDFQ5ZRSjlI7lNCc11sn2PM,59
|
266
|
+
crypticorn-2.10.3.dist-info/top_level.txt,sha256=EP3NY216qIBYfmvGl0L2Zc9ItP0DjGSkiYqd9xJwGcM,11
|
267
|
+
crypticorn-2.10.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|