Skip to main content

Kraken SDK

Tribulnation SDK implementation for Kraken.

Installation

pip install tribulnation-kraken

Surfaces

Surface Class Credentials
Earn tribulnation.kraken.Earn keyed — Earn/Strategies needs an API key
Market tribulnation.kraken.KrakenMarket public for market data, keyed for balances, orders and fills
Report tribulnation.kraken.Report keyed
Wallet tribulnation.kraken.Wallet keyed
from tribulnation.kraken import KrakenMarket

async with KrakenMarket.new(public=True) as kraken:
  book = await kraken.depth('spot:XBTUSD', levels=5)
  print(book.best_bid, book.best_ask)

Spot only, read only. Kraken Futures is a separate product with its own API keys and typed_kraken does not wrap it; place_order/cancel_order raise NotImplementedError because we do not trade on Kraken.

Identifiers

Assets are Kraken's internal ids — XXBT, XETH, ZUSD, USDC, SOL — the spelling Balance, Ledgers, TradesHistory and WithdrawMethods all answer in. Earn/Strategies names assets by display name (BTC) and is re-keyed to the same internal ids through the venue's own Assets listing, which carries the same altname under both spellings. Markets are the REST pair altname (XBTUSD, ETHUSDC): the form every pair= argument and account row uses, joined internally to the WebSocket v2 symbol (BTC/USD) for streams.

Gaps

  • Market.candles: Kraken's OHLC endpoint serves only the 720 most recent candles per interval, whatever since says, so there is no walk to older history.
  • Wallet.deposit_methods: DepositMethods answers a method name per asset and no network field, so there is no network to report.
  • Earn: apr is the midpoint of Kraken's low/high estimate and min_qty is never set, because Kraken quotes the minimum allocation in USD rather than in the asset.

Release files for tribulnation-kraken 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tribulnation-kraken 0.2.0
File Size Uploaded
tribulnation_kraken-0.2.0.tar.gz 21.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tribulnation-kraken 0.2.0
File Interpreter ABI Platform
tribulnation_kraken-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 51.6 kB

Release files / tribulnation_kraken-0.2.0.tar.gz

Download URL tribulnation_kraken-0.2.0.tar.gz
Size 21.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e6579675cf76f5266f5c4d226eb0dc488ab170efdf0e581ea6e33d5f2b9e1aec
BLAKE2b-256 checksum
How to use checksums
1fb6760e5809a55c893d8f18d6ef8aae1aafd6b7b7b301acb55203bae3bd7b5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

Release files / tribulnation_kraken-0.2.0-py3-none-any.whl

Download URL tribulnation_kraken-0.2.0-py3-none-any.whl
Size 30.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6fb5c188141d0c705a641b36be205c26dee194068900baddc88058b838038ad
BLAKE2b-256 checksum
How to use checksums
fbc051f35c9d87c6238094d6fa3b98685528b0e700d940ff7868bdc9fc20f1ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

2 release files

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page