A fully typed, validated async client for the Kraken Spot API -- REST and WebSocket v2.
- Documentation: https://tribulnation.com/typed/kraken
- Source Code: https://github.com/tribulnation/typed/tree/main/packages/kraken
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.spotandclient.streamsparameter and response is typed, down toTypedDicts andLiterals 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
- Fetch Market Data
- Listen To Streams
- Place & Manage Orders
- Fetch Account Data
- Query & Manage Earn Instruments
- Deposits & Withdrawals
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e84be7d14b6abd5a45338cab800b2a11d1b5cb2117b0ff6a22f59370ffc1e6b4
|
|
| MD5 |
20d1bc9d304eb5f6f1f2daf887e0fb1c
|
|
| BLAKE2b-256 |
447db2e9c134f859181ea31840cb868d7bc023308bddde3147842da04396863f
|
Provenance
The following attestation bundles were made for typed_kraken-0.1.2.tar.gz:
Publisher:
release-kraken.yml on tribulnation/typed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
typed_kraken-0.1.2.tar.gz -
Subject digest:
e84be7d14b6abd5a45338cab800b2a11d1b5cb2117b0ff6a22f59370ffc1e6b4 - Sigstore transparency entry: 2507946211
- Sigstore integration time:
-
Permalink:
tribulnation/typed@19ed64bbb8cc40c10c4a08bf32bedbeb1b5371ca -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tribulnation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-kraken.yml@19ed64bbb8cc40c10c4a08bf32bedbeb1b5371ca -
Trigger Event:
pull_request
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebd3a70323b27711b5cff3c3c304f3f088d060bc1bdea13736c8af25f623c91b
|
|
| MD5 |
82b865fa6b5c2aeb6ca220121887691c
|
|
| BLAKE2b-256 |
d466dac575a1936184242d98e06a66709340b68cbff21bdb39203b671be623a1
|
Provenance
The following attestation bundles were made for typed_kraken-0.1.2-py3-none-any.whl:
Publisher:
release-kraken.yml on tribulnation/typed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
typed_kraken-0.1.2-py3-none-any.whl -
Subject digest:
ebd3a70323b27711b5cff3c3c304f3f088d060bc1bdea13736c8af25f623c91b - Sigstore transparency entry: 2507946352
- Sigstore integration time:
-
Permalink:
tribulnation/typed@19ed64bbb8cc40c10c4a08bf32bedbeb1b5371ca -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tribulnation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-kraken.yml@19ed64bbb8cc40c10c4a08bf32bedbeb1b5371ca -
Trigger Event:
pull_request
-
Statement type: