ccxt: after updating from 4.1.39 to version ccxt 4.1.50 - 4.1.66 an error appears (in 4.1.39 everything works fine)

Operating System

Debian, Windows

Programming Languages

Python

CCXT Version

4.1.50 - 4.1.66

Description

after updating from 4.1.39 to version ccxt ccxt 4.1.50 - 4.1.66 an error appears (in 4.1.39 everything works fine): Future exception was never retrieved future: <Future finished exception=DDoSProtection(‘binance {“code":-2015,“msg”:"Invalid API-key, IP, or permissions for action”}’)> Traceback (most recent call last): File “/home//.local/lib/python3.12/site-packages/ccxt/pro/binance.py”, line 2218, in load_positions_snapshot positions = await self.fetch_positions(None, {‘type’: type}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/home//.local/lib/python3.12/site-packages/ccxt/async_support/binance.py”, line 7242, in fetch_positions return await self.fetch_positions_risk(symbols, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/home//.local/lib/python3.12/site-packages/ccxt/async_support/binance.py”, line 7294, in fetch_positions_risk await self.load_leverage_brackets(False, params) File “/home//.local/lib/python3.12/site-packages/ccxt/async_support/binance.py”, line 6968, in load_leverage_brackets response = await getattr(self, method)(query) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/home//.local/lib/python3.12/site-packages/ccxt/async_support/binance.py”, line 8029, in request response = await self.fetch2(path, api, method, params, headers, body, config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ File “/home//.local/lib/python3.12/site-packages/ccxt/async_support/base/exchange.py”, line 1984, in fetch2 return await self.fetch(request[‘url’], request[‘method’], request[‘headers’], request[‘body’]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/home//.local/lib/python3.12/site-packages/ccxt/async_support/base/exchange.py”, line 220, in fetch self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body) File “/home//.local/lib/python3.12/site-packages/ccxt/async_support/binance.py”, line 7989, in handle_errors raise DDoSProtection(self.id + ’ ’ + body) ccxt.base.errors.DDoSProtection: binance {“code”:-2015,“msg”:“Invalid API-key, IP, or permissions for action”}

PS/ New API keys have been created and tested in all possible settings. The problem is not in the API keys and access parameters. I rolled back to version 4.1.39, everything works without errors.

Code

  

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments

@carlosmiei, just tested and the issue seems to be resolved!! 😃