Krakipy
Krakipy is an easy to use Kraken API.
It uses the REST-API of the Kraken.com cryptocurrency exchange.
For more information please visit the krakipy documentation
16.08.2025 - Updated krakipy to amend_order, get_credit_line, add_order_batch, get_websocket_token, create_subaccount, account_transfer, get_withdrawal_adresses, get_pre_trade_data, get_post_trade_data and fixed bugs
08.03.2025 - Updated krakipy to include get_order_amends and get_withdrawal_methods and fixed bugs
29.10.2023 - Updated krakipy to include new functions and fixed bugs
31.07.2021 - Updated krakipy to support staking and unstaking
Features
- All methods of the Kraken Rest API are included (Krakipy documentation also updated)
- Easy and fast to use
- Two factor authentification support (static and OTP)
- Tor support
Installation
Use the package manager pip to install krakipy.
pip install krakipy
Usage Examples
Public Requests
Public requests dont need API keys.
from krakipy import KrakenAPI
# Create a session
kr = KrakenAPI()
# Get Ticker for Bitcoin/EUR
kr.get_ticker_information("XXBTZEUR")
# Get OHLC for Doge/Tether
kr.get_ohlc_data("XDGUSDT")
# Get Spreads for Ether/USD
kr.get_recent_spreads("XETHZUSD")
# Check the Kraken API system status
kr.get_system_status()
Private Requests
Private requests need a valid API key pair to your Kraken account for validation.
from krakipy import KrakenAPI
api_key = "*************************************************"
api_key_secret = "*************************************************"
# Create a validated session
with KrakenAPI(api_key, api_key_secret) as kr:
# Send a limit order to buy 1.5 Bitcoin at 100,000.0 EUR/BTC
kr.add_standard_order("XXBTZEUR", "buy", "limit", volume = 1.5, price = 100000.0)
# Check your account balance
kr.get_account_balance()
# Check your withdrawal adresses
kr.get_withdrawal_adresses()
# Withdraw 1.0 Bitcoin to myBTCWallet
kr.withdraw("XBT", "myBTCWallet", 1.0)
# Download and save an export report to kraken_reports/
kr.retrieve_export_report(report_id, dir="kraken_reports/")
License
The krakipy code is licensed under the MIT LICENSE. This program comes with no WARRANTY.
Krakipy Copyright (C) 2020-2025 Hubertus Wilisch
Metadata
Release files for krakipy 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| krakipy-0.1.11-py3-none-any.whl | Python 3 | none | any | Details for krakipy-0.1.11-py3-none-any.whl |
Release files / krakipy-0.1.11-py3-none-any.whl
| Download URL | krakipy-0.1.11-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8df680ab1ee82dfaffee5637a0433e5a4b2f252d735827516ca25173b9833d99
|
|
BLAKE2b-256 checksum How to use checksums |
0648b2fa4aeb24eca3b5432b0dfcb6b2cef114e17228fa04cc93b1474203beba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Security for krakipy 0.1.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.