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.

Metadata

Release files for typed-kucoin 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for typed-kucoin 0.5.0
File Size Uploaded
typed_kucoin-0.5.0.tar.gz 188.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for typed-kucoin 0.5.0
File Interpreter ABI Platform
typed_kucoin-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 625.4 kB

Release files / typed_kucoin-0.5.0.tar.gz

Download URL typed_kucoin-0.5.0.tar.gz
Size 188.9 kB
Tags Source
SHA-256 checksum
How to use checksums
05fcef6969ea963dedc68eaaf6ecedcdb75c2005769d58102a0b692e8a62a0d1
BLAKE2b-256 checksum
How to use checksums
fdfb289f07b3dff7ecf0bacf5f1f1582df6aad4dd75e31fc25d640c76ef5c988
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 Oct 6, 2026.

Transparency log

Release files / typed_kucoin-0.5.0-py3-none-any.whl

Download URL typed_kucoin-0.5.0-py3-none-any.whl
Size 436.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80d7988dcf4f98c66a43aec1d0b62ce37b1b5333467b825fd1ae5bd80539f90c
BLAKE2b-256 checksum
How to use checksums
985d716d7ff9514d68470a8e7bf57640ab3b23d49db38c6cdf6e476719a384b8
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 Oct 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page