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.1

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.1
File Size Uploaded Provenance Actions
typed_kucoin-0.5.1.tar.gz 189.5 kB With provenance Details for typed_kucoin-0.5.1.tar.gz

Built distribution (wheel)

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

Total release size: 626.6 kB

Release files / typed_kucoin-0.5.1.tar.gz

Download URL typed_kucoin-0.5.1.tar.gz
Size 189.5 kB
Tags Source
SHA-256 checksum
How to use checksums
813422febd19617e5251b0c75f815991155a37f5deb70d3116573a949f72628b
BLAKE2b-256 checksum
How to use checksums
809a05bd1b87ddf28d27ea0f6e7907504c59c09c5b80dc7f664cb046c5577a6c
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.5.1-py3-none-any.whl

Download URL typed_kucoin-0.5.1-py3-none-any.whl
Size 437.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d43c0862ea7af66e5d3897ec4e6ee5eccdd3fd457c6a29351ddc2b8c53e4002b
BLAKE2b-256 checksum
How to use checksums
88bb8baba26d6ff56b49360928921250f0b2d03f6befb72627808ac832c38427
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.5.1

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.5.1.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