For the complete documentation index, see llms.txt. This page is also available as Markdown.

KuCoin Spot historical trade data

KuCoin Spot historical trade data since 2022-12-31, available through SQL or REST in one unified schema and checked every day against KuCoin's own data.

Koinju provides KuCoin Spot trades and OHLCV candles for all markets since 2022-12-31, under the exchange ID kucoin. This page explains what that gives you compared with KuCoin's own API, how we collect the data, and how we verify that no trades are missed.

How far back you can query depends on your plan: see Pricing. Every exchange and its start date is listed on Coverage.

Why use Koinju for KuCoin data

  • Full history in one place. KuCoin publishes its trade history as daily trade files (KuCoin historical data), which our volume check uses to add missing trades. Koinju provides it as one continuous history since 2022-12-31, aligned to UTC days and queryable for any period through SQL or REST.

  • One schema across exchanges. Unified symbols and columns across every exchange we cover, KuCoin included, so the same query works on all of them.

  • Checked against KuCoin's own data. Every day, each market's volume is compared with KuCoin's own daily candle and any missing trades are added.

  • Faithful to KuCoin. KuCoin's own trade IDs and trade times, with prices and quantities exactly as KuCoin publishes them.

At a glance

Property
Value

Exchange ID

kucoin

Historical data since

2022-12-31

Data types

Public trades, OHLCV

Collected from

KuCoin's real-time WebSocket, trade channel (/market/match:<symbol>)

Volume check

Every day, against KuCoin's UTC daily candles

How we collect KuCoin trades

  • Every match, in real time. We subscribe to KuCoin's trade channel (/market/match:<symbol>) for every KuCoin Spot market listed as available for trading. KuCoin pushes its matching events in real time, and each row keeps KuCoin's own trade ID.

  • New listings picked up automatically. The market list is refreshed every minute, and new markets are subscribed without a restart.

  • Active redundancy. Every market is collected twice, by two collectors running in parallel. If one connection drops, it reconnects and resubscribes automatically while the other keeps collecting trades. Both copies of a trade share one key (exchange, market and trade ID), so the second copy is dropped before storage, and anything missed is recovered by the checks below.

  • KuCoin's timestamps. A trade's timestamp is the trade time reported by KuCoin, not the time we received it.

  • Exact values. Prices and quantities are stored exactly as KuCoin publishes them, as high-precision decimals with no rounding.

From KuCoin's message to your data

Each trade KuCoin publishes is stored as one row, with KuCoin's fields mapped to the same columns used for every exchange:

KuCoin field
Koinju column
Notes

symbol

market

Koinju's universal symbol, for example BTC-USDT

tradeId

trade_id

KuCoin's own trade ID

price

price

Exact decimal, no rounding

size

quantity

Exact decimal, as KuCoin publishes it

side

side

The trade's side, as KuCoin publishes it

time

timestamp

KuCoin's trade time

How we verify that no KuCoin trades are missed

Volume check against KuCoin's own candles

The reference is KuCoin's own daily candle for each UTC day. A daily candle is only final once the day has closed, so each day is checked the morning after, against KuCoin's final figures for that day. The daily rhythm follows the reference data rather than an arbitrary time window.

  1. Compare. Each market's volume for the UTC day is compared with KuCoin's daily candle. Markets where our volume is lower than KuCoin's go to step 2.

  2. Add. For those markets, the comparison is repeated hour by hour. The trades of the hours that differ are fetched from KuCoin's daily trade files, and only trades we do not already hold are added.

  3. Re-check. The whole comparison runs again on the updated data, and any difference that remains is flagged for review.

A day is marked as checked only after all three steps complete. If any step fails, the day stays open and is retried on the next run.

KuCoin-specific details

  • UTC daily candles. KuCoin's Spot daily candles (type=1day) start at 00:00 UTC, the same day boundaries as our daily total.

  • The exact figure compared. The volume check compares the daily candle's transaction volume, which KuCoin counts in the base asset (KuCoin docs), with the sum of the trade quantities we hold for that day.

Access KuCoin data

FAQ

Which timestamp does Koinju store?

The trade time reported by KuCoin.

Which KuCoin Spot markets are included?

Every Spot market KuCoin lists as available for trading. The market list is refreshed every minute, so a new listing is subscribed within a minute of appearing in KuCoin's market list.

Last updated

Was this helpful?