Skip to main content

Kucoin SDK

Read-only Classic spot-side reporting, wallet network methods and simple Earn listings. The source checkout also implements credential-free public Classic spot and linear perpetual Market data. This expansion is unreleased; the existing 0.2.1 release does not contain it.

from tribulnation.sdk import ReportSDK, accounts

reports = ReportSDK({'kucoin': accounts.Kucoin()})
async with reports.venue('kucoin') as report:
  async for record in report.history():
    print(record)
  1. History discovers spot markets automatically; no holdings-based filter or caller market list is required. Per-symbol sweeps can require many requests. Omitted bounds select seven days of spot fills and 30 days for deposits/withdrawals; explicit bounds are preserved and rows are filtered locally.
  2. History is best-effort. Retention, delisted symbols, dedicated margin activity, Earn accruals and other unsupported ledgers leave gaps for file ingestion.
  3. Snapshots include Classic main/trade balances and paginated Earn holdings. Futures and legacy margin/isolated compartments are explicitly excluded, not reported as zero exposure. Neither history nor snapshots call futures endpoints. No Futures permission or scope configuration is needed. Rejected supported reads fail rather than claiming zero balances. Other user subaccounts remain unsupported. The underlying Typed futures APIs are unchanged.
  4. Wallet.new(public=True) lists enabled chains with native chainId identifiers. Withdrawal fees are the published minimum, not a quote for a specific transfer.
  5. Earn lists five simple savings/staking families. Structured dual investments are excluded because their contingent principal conversion is not a plain APR product.

Public Market data (unreleased)

from datetime import datetime, timedelta, timezone
from tribulnation.kucoin import KucoinMarket

async with KucoinMarket.new() as venue:
  spot = await venue.exchange('spot')
  print(await spot.tickers(['BTC-USDT']))
  market = await venue.perp_market('perp:XBTUSDTM')
  end = datetime.now(timezone.utc)
  candles = await market.candles('1h', end - timedelta(days=3), end)
  print(await market.next_funding())
  • Discovery, native tickers, public rules, depth, trade candles and perpetual funding use public APIs. No account credentials or Futures permission are needed.
  • Exchange IDs are spot and perp; full SDK IDs include kucoin:spot:BTC-USDT and kucoin:perp:XBTUSDTM. Native symbols are not renamed.
  • Perpetual support covers open linear contracts. Inverse and dated contracts are excluded. Quantities use base units, converted from contract lots where necessary.
  • REST depth accepts 1–100 levels (default 20); streams accept 1–5 (default 5). Streams share an upstream and honor SDK queue/overflow settings.
  • Candles support 1m, 5m, 15m, 1h, 4h, 1d, require aware [start, end) bounds, and page by time at 1,500 spot/200 futures rows. Gaps remain gaps; historical availability differs by product and interval and does not guarantee an archive.
  • Funding history uses inclusive bounds; an omitted start walks earliest available settlements. Perpetual statistics expose index, mark and base-unit open interest; use next_funding() for the current cycle's rate, next settlement and interval.
  • rules().fees is unknown. Account fees and all private Market/trading methods are unsupported. Use the separate Report surface for supported Classic spot reporting.

See the qualification handoff for observed limits, Catalogue follow-up and release/version requirements.

Metadata

Release files for tribulnation-kucoin 0.7.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 tribulnation-kucoin 0.7.0
File Size Uploaded Provenance Actions
tribulnation_kucoin-0.7.0.tar.gz 15.8 kB With provenance Details for tribulnation_kucoin-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tribulnation-kucoin 0.7.0
File Interpreter ABI Platform Actions
tribulnation_kucoin-0.7.0-py3-none-any.whl Python 3 none any Details for tribulnation_kucoin-0.7.0-py3-none-any.whl

Total release size: 34.6 kB

Release files / tribulnation_kucoin-0.7.0.tar.gz

Download URL tribulnation_kucoin-0.7.0.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e233a6ac8391ef626426ff82269f0436e2bb4fae6539cdc73ba0b083b7b1fcd8
BLAKE2b-256 checksum
How to use checksums
2d505ac2f773374b6c77dfaac4908ceca4b28fb0d93ec1474a3c3aac2c6f631e
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 Oct 27, 2026.

Transparency log

Release files / tribulnation_kucoin-0.7.0-py3-none-any.whl

Download URL tribulnation_kucoin-0.7.0-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20787fc2244f41937d0d88b14e75b158bd7cdf1ba365f0ba2d84e5e9d97cb594
BLAKE2b-256 checksum
How to use checksums
9ebe3819521feea301e722a696a7c75fe772030cc24570a8b25f42e283fcdd0c
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 Oct 27, 2026.

Transparency log

Security for tribulnation-kucoin 0.7.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 tribulnation_kucoin-0.7.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 Oct 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