From 47fcc4acf45032688168381c9cfdebe829bd1669 Mon Sep 17 00:00:00 2001 From: carlosmiei <43336371+carlosmiei@users.noreply.github.com> Date: Thu, 27 Feb 2025 11:02:00 +0000 Subject: [PATCH 1/4] update gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 66df4895e..8ce4dbfe4 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ python_binance.egg-info/ .idea/ venv*/ .vscode +.binance/ \ No newline at end of file From 00d9d341788a123a49deac552cf95581acdb3433 Mon Sep 17 00:00:00 2001 From: carlosmiei <43336371+carlosmiei@users.noreply.github.com> Date: Mon, 19 May 2025 14:45:51 +0100 Subject: [PATCH 2/4] bump version --- README.rst | 2 +- binance/__init__.py | 2 +- docs/changelog.rst | 9 ++++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index bdca1146c..088a3227d 100755 --- a/README.rst +++ b/README.rst @@ -1,5 +1,5 @@ ================================= -Welcome to python-binance v1.0.28 +Welcome to python-binance v1.0.29 ================================= .. image:: https://img.shields.io/pypi/v/python-binance.svg diff --git a/binance/__init__.py b/binance/__init__.py index 7f3012eb1..33b56ff52 100755 --- a/binance/__init__.py +++ b/binance/__init__.py @@ -4,7 +4,7 @@ """ -__version__ = "1.0.28" +__version__ = "1.0.29" from binance.async_client import AsyncClient # noqa from binance.client import Client # noqa diff --git a/docs/changelog.rst b/docs/changelog.rst index 26baadea4..09bd4832d 100755 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,8 +1,15 @@ Changelog ========= +v1.0.29 - 2025-05-19 +^^^^^^^^^^^^^^^^^^^^ + +**Fixed** + +- Ws tesnet spot URLs update + -v1.0.28 - 2024-02-27 +v1.0.28 - 2025-02-27 ^^^^^^^^^^^^^^^^^^^^ **Added** From 70e9bf12a57a23b8c7f22f1c2fb012abb6606ebe Mon Sep 17 00:00:00 2001 From: carlosmiei <43336371+carlosmiei@users.noreply.github.com> Date: Wed, 29 Oct 2025 15:16:46 +0000 Subject: [PATCH 3/4] fix(signature): encode non-ascii symbol --- binance/base_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binance/base_client.py b/binance/base_client.py index 123792280..a2b93c51f 100644 --- a/binance/base_client.py +++ b/binance/base_client.py @@ -374,7 +374,7 @@ def _generate_signature(self, data: Dict, uri_encode=True) -> str: sig_func = self._rsa_signature else: sig_func = self._ed25519_signature - query_string = "&".join([f"{d[0]}={d[1]}" for d in self._order_params(data)]) + query_string = "&".join([f"{d[0]}={_urlencode.quote(d[1]) if d[0] == 'symbol' else d[1]}" for d in self._order_params(data)]) res = sig_func(query_string) return self.encode_uri_component(res) if uri_encode else res From d5b92a067568503e29ed9706713f182359802471 Mon Sep 17 00:00:00 2001 From: carlosmiei <43336371+carlosmiei@users.noreply.github.com> Date: Wed, 29 Oct 2025 15:35:17 +0000 Subject: [PATCH 4/4] bump version --- README.rst | 2 +- binance/__init__.py | 2 +- docs/changelog.rst | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 71a5f20cb..50955dc9e 100755 --- a/README.rst +++ b/README.rst @@ -1,5 +1,5 @@ ================================= -Welcome to python-binance v1.0.30 +Welcome to python-binance v1.0.31 ================================= .. image:: https://img.shields.io/pypi/v/python-binance.svg diff --git a/binance/__init__.py b/binance/__init__.py index 849d524ca..50abc9b8d 100755 --- a/binance/__init__.py +++ b/binance/__init__.py @@ -4,7 +4,7 @@ """ -__version__ = "1.0.30" +__version__ = "1.0.31" from binance.async_client import AsyncClient # noqa from binance.client import Client # noqa diff --git a/docs/changelog.rst b/docs/changelog.rst index 9e8afa90a..27fb6ea73 100755 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,14 @@ Changelog ========= +v1.0.31 - 2025-10-29 +^^^^^^^^^^^^^^^^^^^^ + +**Fixed** + +- fix signature encoding for non-ascii symbols (#1612), eg: 币安人生USDT + + v1.0.30 - 2025-10-14 ^^^^^^^^^^^^^^^^^^^^