crypto-ws-api 2.1.5__tar.gz → 2.1.7__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.
- {crypto_ws_api-2.1.5 → crypto_ws_api-2.1.7}/CHANGELOG.md +8 -0
- {crypto_ws_api-2.1.5 → crypto_ws_api-2.1.7}/PKG-INFO +3 -3
- {crypto_ws_api-2.1.5 → crypto_ws_api-2.1.7}/crypto_ws_api/__init__.py +1 -1
- {crypto_ws_api-2.1.5 → crypto_ws_api-2.1.7}/crypto_ws_api/ws_session.py +5 -2
- {crypto_ws_api-2.1.5 → crypto_ws_api-2.1.7}/pyproject.toml +2 -2
- {crypto_ws_api-2.1.5 → crypto_ws_api-2.1.7}/requirements.txt +2 -2
- {crypto_ws_api-2.1.5 → crypto_ws_api-2.1.7}/.deepsource.toml +0 -0
- {crypto_ws_api-2.1.5 → crypto_ws_api-2.1.7}/LICENSE.md +0 -0
- {crypto_ws_api-2.1.5 → crypto_ws_api-2.1.7}/README.md +0 -0
- {crypto_ws_api-2.1.5 → crypto_ws_api-2.1.7}/crypto_ws_api/demo.py +0 -0
- {crypto_ws_api-2.1.5 → crypto_ws_api-2.1.7}/crypto_ws_api/ws_api.toml.template +0 -0
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 2.1.7 - 2026-03-09
|
|
2
|
+
🔧 fix(requirements): update `platformdirs` to version 4.9.4
|
|
3
|
+
🔧 fix(requirements): update `cryptography` to version 46.0.5
|
|
4
|
+
📝 docs(changelog): add release notes for version 2.1.7
|
|
5
|
+
|
|
6
|
+
## 2.1.6 - 2026-01-29
|
|
7
|
+
🐛 fix(ws_session/okx_error_handle): return msg for code 51138
|
|
8
|
+
|
|
1
9
|
## 2.1.5 - 2026-01-29
|
|
2
10
|
🧹 chore(version/websockets): Bump to **2.1.5** and update `websockets` to **16.0**
|
|
3
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: crypto-ws-api
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.7
|
|
4
4
|
Summary: Crypto WS API connector for ASYNC requests
|
|
5
5
|
Author-email: Jerry Fedorenko <jerry.fedorenko@yahoo.com>
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -12,11 +12,11 @@ Classifier: Operating System :: Unix
|
|
|
12
12
|
Classifier: Operating System :: Microsoft :: Windows
|
|
13
13
|
Classifier: Operating System :: MacOS
|
|
14
14
|
Requires-Dist: shortuuid~=1.0.13
|
|
15
|
-
Requires-Dist: platformdirs==4.
|
|
15
|
+
Requires-Dist: platformdirs==4.9.4
|
|
16
16
|
Requires-Dist: toml~=0.10.2
|
|
17
17
|
Requires-Dist: websockets==16.0
|
|
18
18
|
Requires-Dist: ujson~=5.11.0
|
|
19
|
-
Requires-Dist: cryptography
|
|
19
|
+
Requires-Dist: cryptography==46.0.5
|
|
20
20
|
Project-URL: Source, https://github.com/DogsTailFarmer/crypto-ws-api
|
|
21
21
|
|
|
22
22
|
<h1 align="center"><img align="center" src="https://user-images.githubusercontent.com/77513676/250364389-cbedc171-a930-4467-a0cd-21627a6a41ed.svg" width="75">Crypto WS API connector for ASYNC requests</h1>
|
|
@@ -13,7 +13,7 @@ __maintainer__ = "Jerry Fedorenko"
|
|
|
13
13
|
__contact__ = "https://github.com/DogsTailFarmer"
|
|
14
14
|
__email__ = "jerry.fedorenko@yahoo.com"
|
|
15
15
|
__credits__ = ["https://github.com/DanyaSWorlD"]
|
|
16
|
-
__version__ = "2.1.
|
|
16
|
+
__version__ = "2.1.7"
|
|
17
17
|
|
|
18
18
|
from pathlib import Path
|
|
19
19
|
import shutil
|
|
@@ -412,8 +412,7 @@ class UserWSS:
|
|
|
412
412
|
return msg
|
|
413
413
|
elif self.exchange == 'okx':
|
|
414
414
|
if msg.get('code') != '0':
|
|
415
|
-
self.okx_error_handle(msg)
|
|
416
|
-
msg = None
|
|
415
|
+
msg = self.okx_error_handle(msg)
|
|
417
416
|
return msg
|
|
418
417
|
elif self.exchange == 'bitfinex':
|
|
419
418
|
return await self.bitfinex_error_handle(msg)
|
|
@@ -499,8 +498,11 @@ class UserWSS:
|
|
|
499
498
|
# endregion
|
|
500
499
|
|
|
501
500
|
def okx_error_handle(self, msg):
|
|
501
|
+
_msg = None
|
|
502
502
|
if msg.get('code') == '1':
|
|
503
503
|
self.logger.warning(f"OKX User WSS operation failed: {msg}")
|
|
504
|
+
if msg['data'][0]['sCode'] == '51138':
|
|
505
|
+
_msg = msg
|
|
504
506
|
elif msg.get('code') == '63999':
|
|
505
507
|
self.logger.warning(f"An issue occurred on exchange's side: {msg}")
|
|
506
508
|
elif msg.get('code') == '60014':
|
|
@@ -508,6 +510,7 @@ class UserWSS:
|
|
|
508
510
|
self.request_limit_reached = True
|
|
509
511
|
else:
|
|
510
512
|
self.logger.warning(f"Malformed request: status: {msg}")
|
|
513
|
+
return _msg
|
|
511
514
|
|
|
512
515
|
async def binance_error_handle(self, msg):
|
|
513
516
|
error_msg = msg.get('error')
|
|
@@ -18,11 +18,11 @@ requires-python = ">=3.10"
|
|
|
18
18
|
|
|
19
19
|
dependencies = [
|
|
20
20
|
"shortuuid~=1.0.13",
|
|
21
|
-
"platformdirs==4.
|
|
21
|
+
"platformdirs==4.9.4",
|
|
22
22
|
"toml~=0.10.2",
|
|
23
23
|
"websockets==16.0",
|
|
24
24
|
"ujson~=5.11.0",
|
|
25
|
-
"cryptography
|
|
25
|
+
"cryptography==46.0.5"
|
|
26
26
|
]
|
|
27
27
|
|
|
28
28
|
[tool.flit.module]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|