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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

typed_kraken-0.2.0.tar.gz (75.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typed_kraken-0.2.0-py3-none-any.whl (146.1 kB view details)

Uploaded Python 3

File details

Details for the file typed_kraken-0.2.0.tar.gz.

File metadata

  • Download URL: typed_kraken-0.2.0.tar.gz
  • Upload date:
  • Size: 75.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for typed_kraken-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e031a0d525d3c0bfe98296248768552a506acec405146add0209af0d3b592d1f
MD5 eb0ecface43cb455b41800601df0f917
BLAKE2b-256 9fca46c8f79910a0aa84319df074ec19f96a179d022f407b59f3a49792407b0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_kraken-0.2.0.tar.gz:

Publisher: release-kraken.yml on tribulnation/typed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file typed_kraken-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: typed_kraken-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 146.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for typed_kraken-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc88f7c9ee5f88d7676fb30d43c33a0e65eaf477b16512a377d252cc5ee789da
MD5 7e16e4b85913bf7364490a1deb6e3947
BLAKE2b-256 abf23375d3c03912ac9b6e7902137352949c34859783ee9cabfc95493242fd3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_kraken-0.2.0-py3-none-any.whl:

Publisher: release-kraken.yml on tribulnation/typed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page