Vai al contenuto
Tutte le fonti

KuCoin in TaxChain

Beta

TaxChain legge KuCoin ed è testato sulle sue risposte documentate e registrate, ma non è ancora stato riconciliato con dati reali. Confronta le cifre con l'estratto di KuCoin prima della dichiarazione.

Questa pagina è in inglese, per dire esattamente ciò che dicono la documentazione della piattaforma e il codice di TaxChain. I titoli e il resto del sito sono nella tua lingua.

A global crypto exchange. TaxChain reads the files of KuCoin's Order Center export: spot orders and fills, deposits, withdrawals, account statements (bonuses, rewards, airdrops, moves between your accounts), Earn profit, futures realised P&L, convert orders and card purchases, as well as the older trade history file (tradeCreatedAt, orderId, …). An API connection through CCXT exists in the code but is not offered.

Modi di importare

  • Caricamento fileBeta

    KuCoin Order Center export (CSV), and the older trade history CSV

    The CSV files of KuCoin's Order Center export (Order Center, Export: a ZIP with one file per record type, one year at most per export) [1]. Each file is recognised by its columns, in the layouts other tools record from real exports [2]:

    • Spot filled orders (UID, Account Type, Order ID, Order Time, Symbol, Side, …, Filled Time, Fee, Fee Currency, Tax, Status) and spot trade history, one row per fill (…, Filled Time, Fee, Tax, Maker/Taker, Fee Currency).
    • Deposit history and withdrawal history (UID, Account Type, Time, Coin, Amount, Fee, …, Transfer Network, Status, Remarks).
    • Account statements of the funding and trading accounts (UID, Account Type, Currency, Side, Amount, Fee, Time, Remark, Type).
    • Earn profit (UID, Account Type, Order ID, Time, Staked Coin, …, Earnings Coin, Earnings Type, Remarks, Amount).
    • Futures realised P&L, one row per closed position (UID, Account Type, Symbol, Close Type, Realized PNL, Total Realized PNL, Total Funding Fees, Total Trading Fees, Position Opening Time, Position Closing Time).
    • Convert orders (UID, Account Type, Payment Account, Sell, Buy, Price, Tax, Time of Update, Status).
    • Card purchases (Order ID, Currency (Crypto), Crypto Quantity, Currency (Fiat), Fiat Amount, Fee Currency (Fiat), Fee (Fiat), …, Status, Time).

    Times are read in the zone the header names, such as Time(UTC) or Filled Time(UTC+08:00). An Order Center header with no zone is read as Singapore time (UTC+8), as BittyTax reads it [2].

    The older trade history file (first row tradeCreatedAt, orderId, symbol, side, price, size, funds, fee, liquidity, feeCurrency, orderType), the layout of KuCoin's earlier exports and its fills API, is still read; a zone marker in its first header, such as tradeCreatedAt(UTC+8), is applied, and without one its times are UTC.

    The Order Center layouts come from another tool's parser, since the export is behind a login [2]; no real KuCoin export has been reconciled yet.

    A fill read from the trade history file gets the same id as in the older file, and an order filled in one go the same id as its only fill, so uploading these together does not count them twice. An order filled in several parts does not: upload either the filled orders file or the trade history file for a period, not both.

  • Connessione APINon ancora disponibile

    CCXT `kucoin` (4.5.93)

    Would take an API key, its secret and its passphrase. KuCoin issues keys per account: a sub-account needs a key of its own [3].

    Not offered. Checked against KuCoin's documented limits, the sync cannot read a history yet: spot fills are answered at most 7 days at a time [4], so a full sync starting in 2017 gets an empty first week and stops with no fills. On the current (high-frequency) accounts every listed market is asked separately, so fills on delisted markets are never asked for. Deposits and withdrawals before 19 February 2019 come from a separate old list, and a full sync reads only that list [5]. A week with more than 100 fills loses the older ones.

    On a high-frequency account the ledger read is the trading account's, which keeps 7 days [6]; the funding account's ledger, where Earn income and bonuses are booked, is never asked for. That ledger answers 24 hours per query and keeps one year [7].

    KuCoin has no test environment in CCXT, so the sandbox check other venues get is not possible here; it needs a real account.

    Other tools report that KuCoin's API returns about the last year only and nothing before 18 February 2019 [3]. Even with the paging fixed, a full history would need the export.

Cosa viene letto

OperazioneStato
Spot tradesBuys and sells with both sides, from the filled orders file, the trade history file or the older trade history file. Fills of one order in the same second are kept apart.Letto
Trading feesIn the currency the row names, the quote or KCS. A negative fee (maker rebate) is left out with a warning, not counted as a cost. A tax KuCoin charged on a fill or convert is reported in a warning and not recorded: the file does not say in which currency.Letto
Deposits and withdrawalsCompleted ones (status SUCCESS) from the deposit and withdrawal history files, with the network fee in the coin moved. One still processing or under review is left out with a warning; a fiat deposit or withdrawal is not a crypto transaction and is passed over.Letto
ConvertsConvert orders are read from their file: coin for coin a swap, fiat given a purchase, fiat received a sale. A small-balance conversion to KCS is read from the account statement when one coin went into KCS; several coins converted at once are refused with an error, since the statement does not say how much KCS each bought. The statement's Instant Exchange rows are left to the convert orders file.Letto in parte
Fiat purchases and salesCard purchases (Buy Crypto) are read from their file, with the fee in fiat. Card sales, P2P trades and the older fiat order layout are not read.Letto in parte
Earn and staking rewardsFrom the Earn profit file, as staking income. The account statement's Staking Profits, Soft Staking Profits and Voting Earnings rows are left to that file, so they are not counted twice; a warning names them. Moves into and out of Earn (Staking, Redemption) are transfers between your own accounts.Letto
Bonuses, referral rewards and airdropsFrom the account statements: KuCoin Bonus, Referral Bonus, Rewards, Other rewards, Distribution, Airdrop/Fork, Fee Rebate, Refunded Fees and opened red envelopes, as income received for nothing given (airdrop). A red envelope sent is a withdrawal.Letto
Moves between your KuCoin accountsTransfers between the funding, trading, Earn and sub-accounts in the account statements are read as transfers, which realise nothing.Letto
Margin trades and interestMargin rows of the account statement (Margin Trade, Loans, Borrowings, Debt Repayment, Liquidation Fees) are reported as not read; a margin orders file has not been checked.Non letto
Futures: realised P&L and fundingFrom the futures realised P&L file, one row per closed position: the gross result, and funding with trading fees, each as a signed settlement in the contract's settlement coin. They add up to KuCoin's Realized PNL, as KuCoin's position history example shows [8]. Funding is not dated payment by payment, only at the close. The API does not read futures.Letto in parte
Token sales (Spotlight)Read from the account statement as a trade when the purchase is one coin paid and one received at one time; otherwise refused with an error.Letto in parte

Limiti

  • Upload every file of the export you need: each record type is in its own file. The account statements hold only bonuses, rewards, airdrops, small-balance conversions and moves between your accounts here; their deposits, withdrawals, trades, converts and Earn profit are read from those files, and a warning names each type left to another file.
  • For one period, upload the spot filled orders file or the spot trade history file, not both: an order filled in several parts would be counted twice.
  • Margin borrowing, interest and liquidations are not read. A missing purchase stops the calculation (Needs review); missing income does not, so add it yourself.
  • KuCoin's own export covers at most one year per file and 20 exports a month; links expire after 30 days [1]. Trades before 2019 may have to be requested from KuCoin support [3].
  • Every withdrawal counts as a disposal unless you mark it as a move to a wallet of your own.
  • A fee paid in KCS is a disposal of KCS: it needs a KCS purchase behind it.
  • Futures funding is booked at the position's close, not on each funding payment, since the realised P&L file states only its total.
  • New EEA users are directed to KuCoin EU, licensed in Austria in November 2025 [9]. Whether its exports and API match KuCoin's has not been checked.

Come è stato verificato

  • 20 novembre 2026The older trade history layout parsed from rows built from KuCoin's documented fill responses: both sides, fee currency (including KCS), rebates, a zone-marked header, repeated fills of one order.
  • 21 novembre 2026The Order Center export read in each layout BittyTax records [2], from rows built from KuCoin's documented examples [10]: spot filled orders and fills (with the older file's ids), deposits and withdrawals (status, fee, fiat), Earn profit, futures realised P&L signed and split as KuCoin's position history example adds up [8], account statement types placed from KuCoin's ledger table [7], convert orders and card purchases. Each fix mutation-tested.
  • 20 novembre 2026KuCoin's documented API responses (fills, deposits, withdrawals and their pre-2019 lists, ledgers) parsed by CCXT 4.5.93 and normalised; every business type in KuCoin's ledger table placed [10] [7]. Gaps found: converts, card purchases, distributions, futures P&L and unified-account funding are not imported, and a withdrawal under review would be taken as settled.
  • 20 novembre 2026A sync run against KuCoin's endpoints emulated to their documented limits behind the real CCXT class: a full sync reads no fills and no deposits made after February 2019, and a busy week keeps only its newest 100 fills.
  • 20 novembre 2026CCXT's own recorded KuCoin responses (spot and swap fills, ledgers) through the normalisers.

Cosa lo renderebbe Verificato

No real KuCoin export or account has been reconciled. To be Verified:

  • Check the Order Center layouts against a real export: the column names, the zone of an unmarked time, the account statement's Type names, and the sign of Total Funding Fees in the futures file.
  • Reconcile a real export, with a known end balance per coin, through the engine.
  • Read margin borrowing and interest, card sales and P2P trades.
  • For the API: page within KuCoin's windows (7 days for fills, 24 hours for the ledger, from the account's first activity or the one year KuCoin keeps), follow lastId and page numbers, read the funding account's ledger, and then reconcile a real account's sync against its export. KuCoin has no sandbox, so this needs a real account.

Come aggiungerlo

  • On KuCoin, open Order Center, Export, and export each record type you used (deposits and withdrawals, spot orders, convert orders, account statements, Earn, futures, fiat), one year at most per export [1].
  • Unzip the download and upload each CSV under Wallets, Add source, KuCoin. Upload the spot filled orders or the spot trade history file for a period, not both.
  • An older KuCoin trade history file (first column tradeCreatedAt) can be uploaded as it is.
  • Add margin activity, card sales and P2P trades by hand or with the TaxChain CSV template.

Riferimenti

  1. [1]How to Export Trade History. KuCoin. Order Center export: data types, one year per export, data from 16 September 2017, 20 exports a month, links valid 30 days.
  2. [2]BittyTax KuCoin parser. BittyTax. The column layouts of KuCoin's exports, old and current; an Order Center time with no zone read as Singapore time.
  3. [3]Common API limitations: KuCoin. CoinLedger. A third party's account of the API: about one year of data, nothing before 18 February 2019, one key per sub-account.
  4. [4]Get Trade History (Spot). KuCoin. Data only within a 7 × 24 hour range; newest first; lastId paging.
  5. [5]CCXT kucoin exchange class, version 4.5.93. CCXT. fetchMyTrades requires a symbol on high-frequency accounts; a start before 2019-02-18 is sent to the old deposit and withdrawal lists.
  6. [6]Get Account Ledgers - Trade_hf. KuCoin. Only the last 7 × 24 hours.
  7. [7]Get Account Ledgers - Spot/Margin. KuCoin. A query spans at most 24 hours; up to one year of history; the business type table.
  8. [8]Get Positions History (Futures). KuCoin. Its example closes a position with pnl 0.51214413: a gross 0.5837, less a 0.03766066 trading fee, with funding of -0.03389521.
  9. [9]KuCoin Secures Landmark MiCAR License. KuCoin. KuCoin EU Exchange GmbH, authorised by Austria's FMA on 28 November 2025.
  10. [10]KuCoin Universal SDK: REST API specification. KuCoin. Parameters and example responses of each endpoint; the examples are the test fixtures.

Ultimo controllo sulla documentazione della piattaforma e sul codice di TaxChain il 21 novembre 2026.