Skip to main content

Typed Coinbase

A fully typed, validated async client for the Coinbase API.

PyPI version Python versions Docs License



from typed_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

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

typed_coinbase-0.2.0.tar.gz (103.5 kB view details)

Uploaded Source

Built Distribution

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

typed_coinbase-0.2.0-py3-none-any.whl (190.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for typed_coinbase-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a0a1f97f8e3daeb6368967c3ce757d045a34b33749766e5724a8747f6f407447
MD5 f775b6e1b6c26e0fd9aae91843649f67
BLAKE2b-256 be620b39658312a0ab0dfba3a74cc4316f450026db713add141e05c3da744615

See more details on using hashes here.

Provenance

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

Publisher: release-coinbase.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_coinbase-0.2.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for typed_coinbase-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51936f4ad115c9ed1e461ec8b1df64cf83c518901fbc366b8f9f475b9719b919
MD5 3deecad50b8afde3f1990243dd5322e8
BLAKE2b-256 c8b45a154ccc46cc061a5f3fb31f854974ae3c3a8f8c0eb20fa17eb866cb4a17

See more details on using hashes here.

Provenance

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

Publisher: release-coinbase.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