Skip to content

Commit eb85df2

Browse files
committed
Release v3.8.1
1 parent d82693c commit eb85df2

File tree

4 files changed

+48
-1
lines changed

4 files changed

+48
-1
lines changed

.readthedocs.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.11"
12+
# You can also specify other tool versions:
13+
# nodejs: "20"
14+
# rust: "1.70"
15+
# golang: "1.20"
16+
17+
# Build documentation in the "docs/" directory with Sphinx
18+
sphinx:
19+
configuration: docs/source/conf.py
20+
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
21+
# builder: "dirhtml"
22+
# Fail on all warnings to avoid broken references
23+
# fail_on_warning: true
24+
25+
# Optionally build your docs in additional formats such as PDF and ePub
26+
# formats:
27+
# - pdf
28+
# - epub
29+
30+
# Optional but recommended, declare the Python requirements required
31+
# to build your documentation
32+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
33+
python:
34+
install:
35+
- requirements: requirements/requirements-test.txt

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 3.8.1 - 2024-07-25
4+
### Added
5+
- `.readthedocs.yml` to resolve documentation issue
6+
7+
### Changed
8+
- `GET /api/v3/account` has a new optional parameter `omitZeroBalances`, which if enabled hides all zero balances.
9+
- `POST /api/v3/order/cancelReplace` has a new optional parameter `orderRateLimitExceededMode`.
10+
311
## 3.8.0 - 2024-07-04
412
### Added
513
- Trade

binance/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.8.0"
1+
__version__ = "3.8.1"

binance/spot/_trade.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ def cancel_and_replace(
174174
trailingDelta (float, optional): Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.
175175
icebergQty (float, optional): Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order.
176176
newOrderRespType (str, optional): Set the response JSON. MARKET and LIMIT order types default to FULL, all other orders default to ACK.
177+
selfTradePreventionMode (str, optional): The allowed enums is dependent on what is configured on the symbol. The possible supported values are EXPIRE_TAKER, EXPIRE_MAKER, EXPIRE_BOTH, NONE.
178+
cancelRestrictions (str, optional): Supported values: ONLY_NEW - Cancel will succeed if the order status is NEW. ONLY_PARTIALLY_FILLED - Cancel will succeed if order status is PARTIALLY_FILLED.
179+
orderRateLimitExceededMode (str, optional): Supported values: DO_NOTHING (default)- will only attempt to cancel the order if account has not exceeded the order rate limit. CANCEL_ONLY - will always cancel the order.
177180
recvWindow (int, optional): The value cannot be greater than 60000
178181
"""
179182
check_required_parameters(
@@ -580,6 +583,7 @@ def account(self, **kwargs):
580583
https://binance-docs.github.io/apidocs/spot/en/#account-information-user_data
581584
582585
Keyword Args:
586+
omitZeroBalances (bool, optional): When set to true, emits only the non-zero balances of an account. Default value: false
583587
recvWindow (int, optional): The value cannot be greater than 60000
584588
"""
585589

0 commit comments

Comments
 (0)