exchanges-wrapper 2.1.10__tar.gz → 2.1.11__tar.gz
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.
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/PKG-INFO +2 -2
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/__init__.py +1 -1
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/exch_srv.py +6 -2
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/pyproject.toml +1 -1
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/LICENSE.md +0 -0
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/README.md +0 -0
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/client.py +0 -0
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/definitions.py +0 -0
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/errors.py +0 -0
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/events.py +0 -0
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/exch_srv_cfg.toml.template +0 -0
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/http_client.py +0 -0
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/lib.py +0 -0
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/martin/__init__.py +0 -0
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/parsers/bitfinex_parser.py +0 -0
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/parsers/bybit_parser.py +0 -0
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/parsers/huobi_parser.py +0 -0
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/parsers/okx_parser.py +0 -0
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/proto/martin.proto +0 -0
- {exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/web_sockets.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: exchanges-wrapper
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.11
|
|
4
4
|
Summary: REST API and WebSocket asyncio wrapper with grpc powered multiplexer server
|
|
5
5
|
Author-email: Thomas Marchand <thomas.marchand@tuta.io>, Jerry Fedorenko <jerry.fedorenko@yahoo.com>
|
|
6
6
|
Requires-Python: >=3.9
|
|
@@ -11,7 +11,7 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
11
11
|
Classifier: Operating System :: Unix
|
|
12
12
|
Classifier: Operating System :: Microsoft :: Windows
|
|
13
13
|
Classifier: Operating System :: MacOS
|
|
14
|
-
Requires-Dist: crypto-ws-api==2.0.
|
|
14
|
+
Requires-Dist: crypto-ws-api==2.0.10
|
|
15
15
|
Requires-Dist: grpcio==1.62.0
|
|
16
16
|
Requires-Dist: pyotp~=2.9.0
|
|
17
17
|
Requires-Dist: simplejson==3.19.2
|
|
@@ -12,7 +12,7 @@ __maintainer__ = "Jerry Fedorenko"
|
|
|
12
12
|
__contact__ = "https://github.com/DogsTailFarmer"
|
|
13
13
|
__email__ = "jerry.fedorenko@yahoo.com"
|
|
14
14
|
__credits__ = ["https://github.com/DanyaSWorlD"]
|
|
15
|
-
__version__ = "2.1.
|
|
15
|
+
__version__ = "2.1.11"
|
|
16
16
|
|
|
17
17
|
from pathlib import Path
|
|
18
18
|
import shutil
|
|
@@ -233,10 +233,14 @@ class Martin(mr.MartinBase):
|
|
|
233
233
|
if rate_limit:
|
|
234
234
|
await self.rate_limit_control(open_client)
|
|
235
235
|
try:
|
|
236
|
-
res = await getattr(client, client_method_name)(**kwargs)
|
|
237
|
-
except
|
|
236
|
+
res = await asyncio.wait_for(getattr(client, client_method_name)(**kwargs), timeout=HEARTBEAT * 60)
|
|
237
|
+
except asyncio.exceptions.CancelledError:
|
|
238
238
|
msg = f"{msg_header} Server Shutdown"
|
|
239
239
|
raise GRPCError(status=Status.UNAVAILABLE, message=msg)
|
|
240
|
+
except asyncio.exceptions.TimeoutError:
|
|
241
|
+
msg = f"{msg_header} timeout error"
|
|
242
|
+
logger.warning(msg)
|
|
243
|
+
raise GRPCError(status=Status.OUT_OF_RANGE, message=msg)
|
|
240
244
|
except (errors.RateLimitReached, errors.QueryCanceled) as ex:
|
|
241
245
|
Martin.rate_limit_reached_time = time.time()
|
|
242
246
|
msg = f"{msg_header} RateLimitReached: {ex}"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/exch_srv_cfg.toml.template
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/parsers/bitfinex_parser.py
RENAMED
|
File without changes
|
{exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/parsers/bybit_parser.py
RENAMED
|
File without changes
|
{exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/parsers/huobi_parser.py
RENAMED
|
File without changes
|
{exchanges_wrapper-2.1.10 → exchanges_wrapper-2.1.11}/exchanges_wrapper/parsers/okx_parser.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|