Skip to main content

Typed KuCoin

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

PyPI version Python versions Docs License



from 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.1.2.tar.gz (172.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_kucoin-0.1.2-py3-none-any.whl (406.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typed_kucoin-0.1.2.tar.gz
  • Upload date:
  • Size: 172.5 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.1.2.tar.gz
Algorithm Hash digest
SHA256 0eee7a1934be64e59e3e06e61ac2c6d5197a7facf5010556be1d5d86077a256f
MD5 3fc169e6b6f1a73e17319afe4c67406e
BLAKE2b-256 dfbe59f64379ad07258b6cfd58837f1279163b54b6b4bd833e0274d9171ff42b

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_kucoin-0.1.2.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.1.2-py3-none-any.whl.

File metadata

  • Download URL: typed_kucoin-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 406.7 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a4aa5b9add1a2b58173f597a01756311b00e2341ba1d1a07e61665eda4230aa6
MD5 997f546b2e47807480c087c08011c748
BLAKE2b-256 985545c3c623cc290090f8f81f80ba2b4145492e24c800fdd3ad2c2619d00aae

See more details on using hashes here.

Provenance

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

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