exchange = ccxt.bingx({...})
exchange.load_markets()
exchange.verbose = True
exchange.fetch_open_orders('OTHR#99961/USDT')
fetch Request: bingx GET https://open-api.bingx.com/openApi/spot/v1/trade/openOrders?symbol=OTHR#99961-USDT×tamp=1693166413910&signature=d62... RequestHeaders: {'X-BX-APIKEY': ..., 'X-SOURCE-KEY': 'CCXT', 'User-Agent': 'python-requests/2.27.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} RequestBody: None
fetch Response: bingx GET https://open-api.bingx.com/openApi/spot/v1/trade/openOrders?symbol=OTHR#99961-USDT×tamp=1693166413910&signature=d62... 200 ResponseHeaders: {'Date': 'Sun, 27 Aug 2023 20:00:14 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers', 'Content-Encoding': 'gzip', 'CF-Cache-Status': 'DYNAMIC', 'Set-Cookie': ..., 'Strict-Transport-Security': 'max-age=15552000; includeSubDomains; preload', 'X-Content-Type-Options': 'nosniff', 'Server': 'cloudflare', 'CF-RAY': ..., 'alt-svc': 'h3=":443"; ma=86400'} ResponseBody: {"code":100412,"msg":"Null signature","success":false,"timestamp":1693166414032}
Traceback (most recent call last):
...
exchange.fetch_open_orders('OTHR#99961/USDT')
File "/home/xyz/.local/lib/python3.10/site-packages/ccxt/bingx.py", line 1957, in fetch_open_orders
response = self.spotV1PrivateGetTradeOpenOrders(self.extend(request, query))
File "/home/xyz/.local/lib/python3.10/site-packages/ccxt/base/types.py", line 26, in unbound_method
return _self.request(self.path, self.api, self.method, params, config=self.config)
File "/home/xyz/.local/lib/python3.10/site-packages/ccxt/base/exchange.py", line 3019, in request
return self.fetch2(path, api, method, params, headers, body, config)
File "/home/xyz/.local/lib/python3.10/site-packages/ccxt/base/exchange.py", line 3016, in fetch2
return self.fetch(request['url'], request['method'], request['headers'], request['body'])
File "/home/xyz/.local/lib/python3.10/site-packages/ccxt/base/exchange.py", line 644, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File "/home/xyz/.local/lib/python3.10/site-packages/ccxt/bingx.py", line 2748, in handle_errors
raise ExchangeError(feedback) # unknown message
ccxt.base.errors.ExchangeError: bingx {"code":100412,"msg":"Null signature","success":false,"timestamp":1693166414032}
Operating System
Linux Mint
Programming Languages
Python
CCXT Version
4.0.76
Description
Issues with symbols that have '#' character have returned to BingX API (see #18846 for earlier encounter). The source of the problem should be somewhere in the most recent changes to the API.
Code