Skip to main content

Typed KuCoin

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

PyPI version Python versions Docs License



from typed_kucoin import KuCoin

async with KuCoin.new(public=True) as client:
  ticker = await client.spot.ticker(symbol='BTC-USDT')
  print(ticker['price'])

Why Typed KuCoin?

  • 🎯 Precise Types: every request and response across Spot, Margin, Futures and Earn is a typed structure, not a bare dict.
  • ✅ Runtime Validation: responses are checked against their schema by default, not just typed on paper.
  • ⚡ Async First: one client shares an HTTP connection pool per KuCoin host (default, futures, broker) and lazily opens the Spot/Margin WebSocket connection only when a stream is used.
  • 📚 Full Surface: Account, Spot, Margin, Futures, Earn, VIP Lending, Affiliate, Convert, Copy Trading and Broker each hang off their own attribute on KuCoin, alongside the Spot/Margin public and private WebSocket feeds.

Installation

pip install typed-kucoin

How To

Reference

Design Philosophy

Typed KuCoin 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_kucoin-0.2.0.tar.gz (174.6 kB view details)

Uploaded Source

Built Distribution

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

typed_kucoin-0.2.0-py3-none-any.whl (425.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for typed_kucoin-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a36fd61ed35377fc579beeb21d8522a28226e3d50104d8dcd66593bb3e6c8790
MD5 2ae8c7341eb67803ec4db7b8e84b6c55
BLAKE2b-256 b24c99b3d007b82763e9561c299228330093f305fc2b74559da536baad5b7339

See more details on using hashes here.

Provenance

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

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

File metadata

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

File hashes

Hashes for typed_kucoin-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 203856165f9d14fd09dc97a3910125cacb8bc16580b1a13a0abce2cc4590fdb6
MD5 0864444abbb5da2d15ba9d9efd29a27b
BLAKE2b-256 401e8a78fa55748d5b4809ee047470ea7a0714776685ad4880fa71224c32b78e

See more details on using hashes here.

Provenance

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

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