Skip to main content

Typed Coinbase

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

PyPI version Python versions Docs License



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

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.1.2.tar.gz (105.2 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.1.2-py3-none-any.whl (183.0 kB view details)

Uploaded Python 3

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

Hashes for typed_coinbase-0.1.2.tar.gz
Algorithm Hash digest
SHA256 73767a98c4a5d33916ba3e0e6546b25bf5af295a720267104e9579f60bbcd526
MD5 0a850b87ac0566dab6eaba6e1c60ff0f
BLAKE2b-256 a22379678ef47d61c07b2c909ca9e0a7eb081d71e50fdbb1e892e69722759c28

See more details on using hashes here.

Provenance

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

Hashes for typed_coinbase-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fcf7b64fd147778b3b0dc298bcd88a327a4c6f319e967fd8cfe6bc089b7f8d6f
MD5 0ed55e414e499f3a5167a9934d28ff1f
BLAKE2b-256 8d20a10c979e1757c854805fd20b4eb7f1826746edb86bc9cef0f43d6e862865

See more details on using hashes here.

Provenance

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

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