diff --git a/README.rst b/README.rst index 71a5f20c..50955dc9 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 849d524c..50abc9b8 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/binance/base_client.py b/binance/base_client.py index 12379228..a2b93c51 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 diff --git a/docs/changelog.rst b/docs/changelog.rst index 9e8afa90..27fb6ea7 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 ^^^^^^^^^^^^^^^^^^^^