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, }