Skip to content

Commit

Permalink
[Bingx] add IP whitelist error
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeDSM committed Feb 11, 2025
1 parent 7390ef0 commit d224772
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Trading/Exchange/bingx/bingx_exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ class Bingx(exchanges.RestExchange):
EXCHANGE_ORDER_UNCANCELLABLE_ERRORS: typing.List[typing.Iterable[str]] = [
('the order is filled or cancelled', )
]
# text content of errors due to unhandled IP white list issues
EXCHANGE_IP_WHITELIST_ERRORS: typing.List[typing.Iterable[str]] = [
# "PermissionDenied("bingx {"code":100419,"msg":"your current request IP is xx.xx.xx.xxx does not match IP
# whitelist , please go to https://bingx.com/en/account/api/ to verify the ip you have set",
# "timestamp":1739291708037}")"
("not match ip whitelist",),
]

# Set True when get_open_order() can return outdated orders (cancelled or not yet created)
CAN_HAVE_DELAYED_CANCELLED_ORDERS = True
Expand Down
3 changes: 2 additions & 1 deletion Trading/Exchange/kucoin/kucoin_exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ class Kucoin(exchanges.RestExchange):
# text content of errors due to unhandled IP white list issues
EXCHANGE_IP_WHITELIST_ERRORS: typing.List[typing.Iterable[str]] = [
# "kucoinfutures Invalid request ip, the current clientIp is:e3b:e3b:e3b:e3b:e3b:e3b:e3b:e3b"
("invalid request ip",),]
("invalid request ip",),
]

DEFAULT_BALANCE_CURRENCIES_TO_FETCH = ["USDT"]

Expand Down

0 comments on commit d224772

Please sign in to comment.