A fully typed, validated async client for the KuCoin API.
- Documentation: https://tribulnation.com/typed/kucoin
- Source Code: https://github.com/tribulnation/typed/tree/main/packages/kucoin
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
- Fetch Market Data
- Listen To Streams
- Place & Manage Orders
- Manage Account Data
- Query & Manage Earn Instruments
- Deposits & Withdrawals
- Paginate Through Results
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0eee7a1934be64e59e3e06e61ac2c6d5197a7facf5010556be1d5d86077a256f
|
|
| MD5 |
3fc169e6b6f1a73e17319afe4c67406e
|
|
| BLAKE2b-256 |
dfbe59f64379ad07258b6cfd58837f1279163b54b6b4bd833e0274d9171ff42b
|
Provenance
The following attestation bundles were made for typed_kucoin-0.1.2.tar.gz:
Publisher:
release-kucoin.yml on tribulnation/typed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
typed_kucoin-0.1.2.tar.gz -
Subject digest:
0eee7a1934be64e59e3e06e61ac2c6d5197a7facf5010556be1d5d86077a256f - Sigstore transparency entry: 2507951443
- Sigstore integration time:
-
Permalink:
tribulnation/typed@9b23944b4283f91e16e30b1beb5a83d01bd4cdd0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tribulnation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-kucoin.yml@9b23944b4283f91e16e30b1beb5a83d01bd4cdd0 -
Trigger Event:
pull_request
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4aa5b9add1a2b58173f597a01756311b00e2341ba1d1a07e61665eda4230aa6
|
|
| MD5 |
997f546b2e47807480c087c08011c748
|
|
| BLAKE2b-256 |
985545c3c623cc290090f8f81f80ba2b4145492e24c800fdd3ad2c2619d00aae
|
Provenance
The following attestation bundles were made for typed_kucoin-0.1.2-py3-none-any.whl:
Publisher:
release-kucoin.yml on tribulnation/typed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
typed_kucoin-0.1.2-py3-none-any.whl -
Subject digest:
a4aa5b9add1a2b58173f597a01756311b00e2341ba1d1a07e61665eda4230aa6 - Sigstore transparency entry: 2507951535
- Sigstore integration time:
-
Permalink:
tribulnation/typed@9b23944b4283f91e16e30b1beb5a83d01bd4cdd0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tribulnation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-kucoin.yml@9b23944b4283f91e16e30b1beb5a83d01bd4cdd0 -
Trigger Event:
pull_request
-
Statement type: