{"id":23942,"library":"krakenex","title":"krakenex","description":"Python client for the Kraken cryptocurrency exchange REST API. Current version 2.2.2, stable with infrequent releases. Supports Python >=3.3.","status":"active","version":"2.2.2","language":"python","source_language":"en","source_url":"https://github.com/veox/python3-krakenex","tags":["cryptocurrency","kraken","exchange","api"],"install":[{"cmd":"pip install krakenex","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"Wrong constructor name","wrong":"from krakenex import KrakenAPI","symbol":"API","correct":"import krakenex; api = krakenex.API()"},{"note":"Trade is a module, not a direct submodule","wrong":"from krakenex.trade import Trade","symbol":"Trade","correct":"from krakenex import Trade"}],"quickstart":{"code":"import krakenex\n\napi = krakenex.API()\napi.load_key('kraken.key')\nprint(api.query_private('Balance'))","lang":"python","description":"Initialize API, load key file, query private endpoint."},"warnings":[{"fix":"Use `api.load_key('filename')` or `api.key = '...'; api.secret = '...'`.","message":"Version 2.0.0 changed the API constructor to require no arguments; old code using `API('key','secret')` will break.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Set `api.user_agent = 'MyApp/1.0'` after creating API instance.","message":"The library does not set a User-Agent header by default; Kraken may reject requests.","severity":"gotcha","affected_versions":"all"},{"fix":"Use `api.query_public('Trades', {'pair': 'XBTUSD'})` instead of `Trade().get_trades('XBTUSD')`.","message":"The `Trade` module is deprecated and may be removed in a future release. Use the raw API methods instead.","severity":"deprecated","affected_versions":">=2.2.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `pip install krakenex`. Ensure the correct import statement: `import krakenex`.","cause":"The package is installed under a different name or not installed.","error":"ModuleNotFoundError: No module named 'krakenex'"},{"fix":"Upgrade krakenex: `pip install --upgrade krakenex`. If persists, pin `requests>=2.22.0`.","cause":"Library version incompatibility with requests library in older Python versions (pre-2.2.0).","error":"connect() got an unexpected keyword argument 'headers'"},{"fix":"Upgrade krakenex: `pip install --upgrade krakenex`. Old code should use `krakenex.API` if upgraded.","cause":"Outdated version (<2.0.0) that used a different API class.","error":"AttributeError: module 'krakenex' has no attribute 'API'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}