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 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 and client.streams 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.1.2.tar.gz (68.0 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.1.2-py3-none-any.whl (132.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typed_kraken-0.1.2.tar.gz
  • Upload date:
  • Size: 68.0 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.1.2.tar.gz
Algorithm Hash digest
SHA256 e84be7d14b6abd5a45338cab800b2a11d1b5cb2117b0ff6a22f59370ffc1e6b4
MD5 20d1bc9d304eb5f6f1f2daf887e0fb1c
BLAKE2b-256 447db2e9c134f859181ea31840cb868d7bc023308bddde3147842da04396863f

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_kraken-0.1.2.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.1.2-py3-none-any.whl.

File metadata

  • Download URL: typed_kraken-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 132.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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ebd3a70323b27711b5cff3c3c304f3f088d060bc1bdea13736c8af25f623c91b
MD5 82b865fa6b5c2aeb6ca220121887691c
BLAKE2b-256 d466dac575a1936184242d98e06a66709340b68cbff21bdb39203b671be623a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_kraken-0.1.2-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

0.2.0

2 files

This release

0.1.2 This release

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