Install & Compatibility
Where this runs
tested against v2.2.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.638s · 22.4MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.9s · import 0.574s · 23MB
20MB installed
● package 20MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
API
✓ import krakenex; api = krakenex.API()
✗ from krakenex import KrakenAPI
Wrong constructor name
Trade
✓ from krakenex import Trade
✗ from krakenex.trade import Trade
Trade is a module, not a direct submodule
Initialize API, load key file, query private endpoint.
import krakenex
api = krakenex.API()
api.load_key('kraken.key')
print(api.query_private('Balance'))
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'krakenex'
The package is installed under a different name or not installed.
fixRun `pip install krakenex`. Ensure the correct import statement: `import krakenex`.
connect() got an unexpected keyword argument 'headers'
Library version incompatibility with requests library in older Python versions (pre-2.2.0).
fixUpgrade krakenex: `pip install --upgrade krakenex`. If persists, pin `requests>=2.22.0`.
AttributeError: module 'krakenex' has no attribute 'API'
Outdated version (<2.0.0) that used a different API class.
fixUpgrade krakenex: `pip install --upgrade krakenex`. Old code should use `krakenex.API` if upgraded.
Upgrade
Version history
2.2.2latest on PyPI · released Jul 1, 2024
Audit
Dependencies
No dependency data recorded yet.