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. uta and streams.uta_private cover Unified Trading Account trading: account mode, unified margin, orders for every product line, fills, positions and the private order and execution channels.

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.6.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.6.0
File Size Uploaded Provenance Actions
typed_kucoin-0.6.0.tar.gz 202.5 kB With provenance Details for typed_kucoin-0.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 669.1 kB

Release files / typed_kucoin-0.6.0.tar.gz

Download URL typed_kucoin-0.6.0.tar.gz
Size 202.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c061978f5837c916a31704732e78029801a97c1d97b81537bf43ea644f3ffb7b
BLAKE2b-256 checksum
How to use checksums
cf715561b77a8e61e11386e45a0c569975d8e846b3b1a10963ed53ca509b6129
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 27, 2026.

Transparency log

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

Download URL typed_kucoin-0.6.0-py3-none-any.whl
Size 466.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6ee1bf3396885c40b116526fe6b06e2885942e04142bc3216b0adaea95f54fa
BLAKE2b-256 checksum
How to use checksums
413dd527a7cf3855ebffacc381a5ef873baf7f97aeffe39b99b04f6acbda3965
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 27, 2026.

Transparency log

Security for typed-kucoin 0.6.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for typed_kucoin-0.6.0.tar.gz

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 Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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