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 typed_coinbase import Coinbase
async with Coinbase.new(public=True) as client:
product = await client.app.advanced_trade.http.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 across
app.accounts,app.advanced_trade.http, and its two WebSocket connections. - 📚 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.
Release files for typed-coinbase 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| typed_coinbase-0.3.0.tar.gz | 105.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| typed_coinbase-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 302.5 kB
Release files / typed_coinbase-0.3.0.tar.gz
| Download URL | typed_coinbase-0.3.0.tar.gz |
|---|---|
| Size | 105.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b420143fdabb429eca08c0d10abde41a2569736cbfcf53ca0f1fc40d1bf21218
|
|
BLAKE2b-256 checksum How to use checksums |
de2c58885086590c0c872bc19ab4cacd99437656c01761f2103782c868bdd06f
|
| 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 Aug 25, 2026.
Transparency logRelease files / typed_coinbase-0.3.0-py3-none-any.whl
| Download URL | typed_coinbase-0.3.0-py3-none-any.whl |
|---|---|
| Size | 197.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69d7e27fdc1c8f2c7cde704cf26a4fd48fa860adfec045470f0485a89a89300b
|
|
BLAKE2b-256 checksum How to use checksums |
320ab5ae9ded8d819e28391a81c3debb5f82fb80124492acad02e85d82157e7f
|
| 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 Aug 25, 2026.
Transparency log