A fully typed, validated async client for the Coinbase API.
- Documentation: https://tribulnation.com/typed/coinbase
- Source Code: https://github.com/tribulnation/typed/tree/main/packages/coinbase
from coinbase import Coinbase
async with Coinbase.new(public=True) as client:
product = await client.advanced_trade.products.public.get('BTC-USD')
print(product['price'])
Why Typed Coinbase?
- 🎯 Precise Types: every endpoint's inputs and responses are typed, from Coinbase App (v2) wallets to Advanced Trade (v3) order configurations and fee tiers, not
dict/Any. - ✅ Runtime Validation: every response is validated against its declared schema by default, across both the v2 and v3 APIs.
- ⚡ Async First: async HTTP and WebSocket streaming, built for concurrent workflows against
accounts,advanced_trade, and the public/private streams. - 📚 Full Surface: every documented Coinbase App and Advanced Trade endpoint, not just the popular ones.
Installation
pip install typed-coinbase
How To
- Fetch Market Data
- Manage Account Data
- Deposits & Withdrawals
- Place & Manage Orders
- Listen To Streams
- Paginate Through Results
Reference
Design Philosophy
Typed Coinbase 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_coinbase-0.1.2.tar.gz.
File metadata
- Download URL: typed_coinbase-0.1.2.tar.gz
- Upload date:
- Size: 105.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73767a98c4a5d33916ba3e0e6546b25bf5af295a720267104e9579f60bbcd526
|
|
| MD5 |
0a850b87ac0566dab6eaba6e1c60ff0f
|
|
| BLAKE2b-256 |
a22379678ef47d61c07b2c909ca9e0a7eb081d71e50fdbb1e892e69722759c28
|
Provenance
The following attestation bundles were made for typed_coinbase-0.1.2.tar.gz:
Publisher:
release-coinbase.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_coinbase-0.1.2.tar.gz -
Subject digest:
73767a98c4a5d33916ba3e0e6546b25bf5af295a720267104e9579f60bbcd526 - Sigstore transparency entry: 2507939104
- Sigstore integration time:
-
Permalink:
tribulnation/typed@36146884999510c6c5393884ca275b319c61fb3b -
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-coinbase.yml@36146884999510c6c5393884ca275b319c61fb3b -
Trigger Event:
pull_request
-
Statement type:
File details
Details for the file typed_coinbase-0.1.2-py3-none-any.whl.
File metadata
- Download URL: typed_coinbase-0.1.2-py3-none-any.whl
- Upload date:
- Size: 183.0 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 |
fcf7b64fd147778b3b0dc298bcd88a327a4c6f319e967fd8cfe6bc089b7f8d6f
|
|
| MD5 |
0ed55e414e499f3a5167a9934d28ff1f
|
|
| BLAKE2b-256 |
8d20a10c979e1757c854805fd20b4eb7f1826746edb86bc9cef0f43d6e862865
|
Provenance
The following attestation bundles were made for typed_coinbase-0.1.2-py3-none-any.whl:
Publisher:
release-coinbase.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_coinbase-0.1.2-py3-none-any.whl -
Subject digest:
fcf7b64fd147778b3b0dc298bcd88a327a4c6f319e967fd8cfe6bc089b7f8d6f - Sigstore transparency entry: 2507939184
- Sigstore integration time:
-
Permalink:
tribulnation/typed@36146884999510c6c5393884ca275b319c61fb3b -
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-coinbase.yml@36146884999510c6c5393884ca275b319c61fb3b -
Trigger Event:
pull_request
-
Statement type: