Skip to main content

Typed Kraken

A fully typed, validated async client for the Kraken Spot API -- REST and WebSocket v2.

PyPI version Python versions Docs License



from typed_kraken import Kraken

async with Kraken.new(public=True) as client:
  ticker = await client.spot.market_data.ticker(pair='XBTUSD')
  print(ticker)

Why Typed Kraken?

  • 🎯 Precise Types: every client.spot, client.streams, and client.trading_ws parameter and response is typed, down to TypedDicts and Literals for Kraken's own field names.
  • ✅ Runtime Validation: REST and WebSocket v2 responses are validated against their schema before you see them, not just typed on paper.
  • ⚡ Async First: async REST calls and long-lived WebSocket v2 subscriptions, built for concurrent trading workflows.
  • 📚 Full Surface: market data, account, trading, funding, and earn -- every documented Kraken Spot endpoint, not just the popular ones.

Installation

pip install typed-kraken

How To

Reference

Design Philosophy

Typed Kraken follows the principles outlined in this blog post.

Details matter. Developer experience matters.

License

MIT -- see LICENSE.

Metadata

Release files for typed-kraken 0.3.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 typed-kraken 0.3.0
File Size Uploaded
typed_kraken-0.3.0.tar.gz 82.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for typed-kraken 0.3.0
File Interpreter ABI Platform
typed_kraken-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 236.8 kB

Release files / typed_kraken-0.3.0.tar.gz

Download URL typed_kraken-0.3.0.tar.gz
Size 82.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b9b5f3ba1ec15558772d7c2d13ec2141cd5d574f31d241760e79ce39e4507026
BLAKE2b-256 checksum
How to use checksums
0a7494eb0ecf9bac2a92d07e830d4645528fccbfd8807e0d04d0188dd8f910ea
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 10, 2026.

Transparency log

Release files / typed_kraken-0.3.0-py3-none-any.whl

Download URL typed_kraken-0.3.0-py3-none-any.whl
Size 154.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed5dc81719aad2d7d5e9f12311b186d9394000d455f5ece4f2172eda46656c38
BLAKE2b-256 checksum
How to use checksums
fe1540ce8173508a2523c90b99acc26acfbb4f7d8a4900e1876c77d3f80aedf7
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 10, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.0

2 release files

0.4.0

2 release files

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

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