
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
krakipy
Advanced tools
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
Use the package manager pip to install krakipy.
pip install krakipy
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 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/")
The krakipy code is licensed under the MIT LICENSE. This program comes with no WARRANTY.
Krakipy Copyright (C) 2020-2025 Hubertus Wilisch
FAQs
A well-documented Python API for the Kraken Cryptocurrency Exchange
We found that krakipy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.