crypticorn 2.13.1__py3-none-any.whl → 2.13.2__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/client.py +8 -9
- {crypticorn-2.13.1.dist-info → crypticorn-2.13.2.dist-info}/METADATA +1 -1
- {crypticorn-2.13.1.dist-info → crypticorn-2.13.2.dist-info}/RECORD +7 -7
- {crypticorn-2.13.1.dist-info → crypticorn-2.13.2.dist-info}/WHEEL +0 -0
- {crypticorn-2.13.1.dist-info → crypticorn-2.13.2.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.13.1.dist-info → crypticorn-2.13.2.dist-info}/licenses/LICENSE +0 -0
- {crypticorn-2.13.1.dist-info → crypticorn-2.13.2.dist-info}/top_level.txt +0 -0
crypticorn/client.py
CHANGED
@@ -34,11 +34,13 @@ class ApiClient:
|
|
34
34
|
self.version = version("crypticorn")
|
35
35
|
"""The version of the client."""
|
36
36
|
|
37
|
-
self._http_client = ClientSession(
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
)
|
37
|
+
# self._http_client = ClientSession(
|
38
|
+
# timeout=ClientTimeout(total=30.0),
|
39
|
+
# connector=TCPConnector(limit=100, limit_per_host=20),
|
40
|
+
# headers={"User-Agent": f"crypticorn/python/{self.version}"},
|
41
|
+
# )
|
42
|
+
self._http_client = None # temporary fix for the issue with the event loop
|
43
|
+
|
42
44
|
self._service_classes: dict[Service, type[SubClient]] = {
|
43
45
|
Service.HIVE: HiveClient,
|
44
46
|
Service.TRADE: TradeClient,
|
@@ -98,11 +100,8 @@ class ApiClient:
|
|
98
100
|
|
99
101
|
async def close(self):
|
100
102
|
for service in self._services.values():
|
101
|
-
if hasattr(service, "
|
102
|
-
service.base_client, "close"
|
103
|
-
):
|
103
|
+
if hasattr(service.base_client, "close"):
|
104
104
|
await service.base_client.close()
|
105
|
-
await self._http_client.close()
|
106
105
|
|
107
106
|
def _get_default_config(self, service, version=None):
|
108
107
|
if version is None:
|
@@ -1,5 +1,5 @@
|
|
1
1
|
crypticorn/__init__.py,sha256=ctrwe5CQtYhnetHYPgSmC0CIHa4xbDsLZvpY38tfEow,423
|
2
|
-
crypticorn/client.py,sha256
|
2
|
+
crypticorn/client.py,sha256=hIX_9RroQXQ_xW0t9H6XYjt7OI_sqX4kw4fRWJXlXos,5205
|
3
3
|
crypticorn/auth/__init__.py,sha256=JAl1tBLK9pYLr_-YKaj581c-c94PWLoqnatTIVAVvMM,81
|
4
4
|
crypticorn/auth/main.py,sha256=FHLsAbp2mXDlmcPmLKc29qaD1dBev65V3DNKLyfz4Tw,1012
|
5
5
|
crypticorn/auth/client/__init__.py,sha256=do16xS84uXvVoJuWERjb9RwlOaLy4UF4uKBZWczFC3c,5291
|
@@ -279,9 +279,9 @@ crypticorn/trade/client/models/strategy_update.py,sha256=f7UsKSlNardj5h6uqHYbacj
|
|
279
279
|
crypticorn/trade/client/models/tpsl.py,sha256=lLPVSvLETgLMFqH9wEBUTQXY6aaydMifEt47mYbfw-A,4111
|
280
280
|
crypticorn/trade/client/models/tpsl_create.py,sha256=nX4i2BGWv5rmu3SLgRngfvEMFOWa3CIy0G3fyoxI-e4,3351
|
281
281
|
crypticorn/trade/client/models/trading_action_type.py,sha256=BysUEOl85zs79EA2zOcDN1EExcpQdABaJ4Jz08_z8VU,857
|
282
|
-
crypticorn-2.13.
|
283
|
-
crypticorn-2.13.
|
284
|
-
crypticorn-2.13.
|
285
|
-
crypticorn-2.13.
|
286
|
-
crypticorn-2.13.
|
287
|
-
crypticorn-2.13.
|
282
|
+
crypticorn-2.13.2.dist-info/licenses/LICENSE,sha256=HonAVvzFXkP2C1d7D3ByIKPwjGH8NcHTAQvKH7uvOHQ,1856
|
283
|
+
crypticorn-2.13.2.dist-info/METADATA,sha256=5ra60bQWOCW0s-2eHoL45FBF9ofioCEdyrjRfxCQJA0,9490
|
284
|
+
crypticorn-2.13.2.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
285
|
+
crypticorn-2.13.2.dist-info/entry_points.txt,sha256=d_xHsGvUTebPveVUK0SrpDFQ5ZRSjlI7lNCc11sn2PM,59
|
286
|
+
crypticorn-2.13.2.dist-info/top_level.txt,sha256=EP3NY216qIBYfmvGl0L2Zc9ItP0DjGSkiYqd9xJwGcM,11
|
287
|
+
crypticorn-2.13.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|