Skip to content

Commit

Permalink
v4.0.0 rc3 release (#116)
Browse files Browse the repository at this point in the history
* v4.0.0 rc3 release

* fixing issue of modify order
  • Loading branch information
2pd committed Jul 3, 2023
1 parent b854f33 commit 7fc9623
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion binance/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "4.0.0rc2"
__version__ = "4.0.0rc3"
2 changes: 1 addition & 1 deletion binance/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
)
Expand Down
2 changes: 2 additions & 0 deletions binance/um_futures/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def modify_order(
"side": side,
"quantity": quantity,
"orderId": orderId,
"price": price,
**kwargs,
}
else:
Expand All @@ -203,6 +204,7 @@ def modify_order(
"side": side,
"quantity": quantity,
"origClientOrderId": origClientOrderId,
"price": price,
**kwargs,
}

Expand Down

0 comments on commit 7fc9623

Please sign in to comment.