From 7fc96235b73472f84f3e5e39a993c7439c4b8a9a Mon Sep 17 00:00:00 2001 From: Jeremy <365354+2pd@users.noreply.github.com> Date: Mon, 3 Jul 2023 01:49:14 +0000 Subject: [PATCH] v4.0.0 rc3 release (#116) * v4.0.0 rc3 release * fixing issue of modify order --- CHANGELOG.md | 8 ++++++++ binance/__version__.py | 2 +- binance/api.py | 2 +- binance/um_futures/account.py | 2 ++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3af9d63..e9485f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 4.0.0rc3 - 2023-07-03 + +### Changed +- Change `User-Agent` + +### Updated +- Fixed `modify_order` (`PUT /fapi/v1/order`) Endpoint by correctly adding the `price` parameter + ## 4.0.0rc2 - 2023-05-25 ### Added diff --git a/binance/__version__.py b/binance/__version__.py index 1e47087..76465df 100644 --- a/binance/__version__.py +++ b/binance/__version__.py @@ -1 +1 @@ -__version__ = "4.0.0rc2" +__version__ = "4.0.0rc3" diff --git a/binance/api.py b/binance/api.py index 6bf85eb..245c70f 100644 --- a/binance/api.py +++ b/binance/api.py @@ -46,7 +46,7 @@ def __init__( self.session.headers.update( { "Content-Type": "application/json;charset=utf-8", - "User-Agent": "binance-connector/" + __version__, + "User-Agent": "binance-futures-connector-python/" + __version__, "X-MBX-APIKEY": key, } ) diff --git a/binance/um_futures/account.py b/binance/um_futures/account.py index ff8a5ce..bf94291 100644 --- a/binance/um_futures/account.py +++ b/binance/um_futures/account.py @@ -195,6 +195,7 @@ def modify_order( "side": side, "quantity": quantity, "orderId": orderId, + "price": price, **kwargs, } else: @@ -203,6 +204,7 @@ def modify_order( "side": side, "quantity": quantity, "origClientOrderId": origClientOrderId, + "price": price, **kwargs, }