Skip to content

Commit

Permalink
Add BinanceErrorCode.SERVER_BUSY
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Jan 2, 2024
1 parent 8ec6b35 commit 2ade2bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Released on TBD (UTC).
### Fixes
- Fixed handling of configuration objects to work with `StreamingFeatherWriter`
- Fixed `BinanceSpotInstrumentProvider` fee loading key error for partial instruments load, thanks for reporting @doublier1
- Added `BinanceErrorCode.SERVER_BUSY` (-1008). Also added to the retry error codes.

---

Expand Down
1 change: 1 addition & 0 deletions nautilus_trader/adapters/binance/common/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ class BinanceErrorCode(Enum):
NO_SUCH_IP = -1005
UNEXPECTED_RESP = -1006
TIMEOUT = -1007
SERVER_BUSY = -1008
ERROR_MSG_RECEIVED = -1010
NON_WHITE_LIST = -1011
INVALID_MESSAGE = -1013
Expand Down
1 change: 1 addition & 0 deletions nautilus_trader/adapters/binance/common/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ def __init__(
BinanceErrorCode.DISCONNECTED,
BinanceErrorCode.TOO_MANY_REQUESTS, # Short retry delays may result in bans
BinanceErrorCode.TIMEOUT,
BinanceErrorCode.SERVER_BUSY,
BinanceErrorCode.INVALID_TIMESTAMP,
BinanceErrorCode.CANCEL_REJECTED,
BinanceErrorCode.ME_RECVWINDOW_REJECT,
Expand Down

0 comments on commit 2ade2bb

Please sign in to comment.