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 and public linear perpetuals are available through spot and perp exchanges. For example, await kraken.depth('perp:PF_XBTUSD', levels=5) reads the Futures book. Perpetuals support discovery, tickers, rules, depth, index, statistics, historical funding and all six trade-candle intervals. Private Futures methods, trading, next-funding estimates and Futures streams remain unsupported.

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. Spot 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.

Perpetual market IDs retain the instrument symbol (PF_XBTUSD, PF_ETHUSD). The supported set is non-tradfi USD flexible_futures with unit contract size, joined to active perpetual tickers. Kraken includes some tokenized assets in that set.

Perpetual quantities are already base units. Historical funding uses Kraken's relative rate and maps period start to settlement time by adding one hour. Funding bounds are inclusive; an omitted start reads all retained rows. The latest period may settle later.

Gaps

  • Spot Market.candles: Kraken documents a window of 720 recent candles per interval; BTC/ETH probes returned 721 rows including the current interval. since cannot retrieve older history, so archive backfill requires separate ingestion.
  • Perpetual candles use bounded requests of 2000 possible opens, preserving aware half-open bounds and missing periods. Older availability depends on the market; the API is not a complete archive guarantee. Standard fees and maximum order size remain unknown. next_funding and Futures streams are unsupported.
  • 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.

Metadata

Release files for tribulnation-kraken 0.7.1

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.7.1
File Size Uploaded
tribulnation_kraken-0.7.1.tar.gz 27.2 kB Details

Built distribution (wheel)

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

Total release size: 65.2 kB

Release files / tribulnation_kraken-0.7.1.tar.gz

Download URL tribulnation_kraken-0.7.1.tar.gz
Size 27.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0241e6c65241654fe90293c36c6c1c8d499e0d58b66d42439570326fd4811086
BLAKE2b-256 checksum
How to use checksums
2d2c02dc6916f16b20aadbeb0e4dea0fefdbd561a2f5052330ceab1822f8f6fa
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 Oct 9, 2026.

Transparency log

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

Download URL tribulnation_kraken-0.7.1-py3-none-any.whl
Size 38.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5aa9b39ad3e0d169210fdf77860757a43db9ab2cb2ebe4a16f673eb0201bfd0
BLAKE2b-256 checksum
How to use checksums
198e30e2f31a191ccadafa0800b53cbd6cb7b2acc1a36e89a1b17c000cf052d8
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 Oct 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

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