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.4.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.4.0
File Size Uploaded
typed_kucoin-0.4.0.tar.gz 188.1 kB Details

Built distribution (wheel)

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

Total release size: 623.5 kB

Release files / typed_kucoin-0.4.0.tar.gz

Download URL typed_kucoin-0.4.0.tar.gz
Size 188.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c21876ab69717b33b4b4c78eb916c2bebd9122203a8063ef616bcea2537957aa
BLAKE2b-256 checksum
How to use checksums
4d53db068df4d2d015d0f211052f6fee8b7342028c814c45cad9b2ecb26ffa09
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 Sep 20, 2026.

Transparency log

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

Download URL typed_kucoin-0.4.0-py3-none-any.whl
Size 435.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96f2d01b87780bd582920323b5a07b7930a32810138f8d073b0f5abc2d17f865
BLAKE2b-256 checksum
How to use checksums
8e946e14ebd1717c3283af3deea7e99f4b9cb61a9ffc263ae76243caf41426e2
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 Sep 20, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.0

2 release files

0.4.1

2 release files

This release

0.4.0 This release

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