Skip to main content

KuCoin: Transaction import via API & CSV

At a glance

๐Ÿ‘๏ธ Blockpit imports KuCoin transactions via API key or from a CSV file: Crypto Deposits & Withdrawals, Fees, KCS and Spot Market Trades.

โ€‹

Import method: API ยท CSV

โ€‹

โ€‹

How do I get my KuCoin API key?

API is the initially preferred method of integration.

โ€‹

If necessary, additional CSV files can be uploaded afterwards. When uploading CSV files, make sure to avoid transaction duplicates. More information on this can be found under the CSV file upload subsection.

โ€‹

1๏ธโƒฃ Log in to your KuCoin account.

โ€‹

2๏ธโƒฃ Select API Management in your profile in the top-right corner.

โ€‹

โ€‹

3๏ธโƒฃ Now click Create API.

โ€‹

4๏ธโƒฃ Important: Enter blockpit as the passphrase.

โ€‹

5๏ธโƒฃ Grant the API key permission General shown in the image.

โ€‹

6๏ธโƒฃ Use no IP restrictions for now.

โ€‹

โ€‹

7๏ธโƒฃ Click Next, confirm with your trading, e-mail and 2FA codes and activate your API key.

โ€‹

8๏ธโƒฃ Your API key and Secret are now shown in the API list.

โ€‹

Your Secret is shown only once and can only be copied briefly.

โ€‹

9๏ธโƒฃ Open + Integration (or, in the Dashboard under the Integrations tab, click + Integration).

โ€‹

๐Ÿ”Ÿ Select KuCoin in the list of exchanges (dialog Add KuCoin) and then copy the API key and the Secret into the designated fields. Confirm your entries with Continue.

โ€‹

๐Ÿงฎ When using KuCoin subaccounts, a separate Blockpit integration must be created for each subaccount.

โ€‹

๐Ÿ’ก If you cannot achieve an integration without "Mismatched Balances" with an initial API integration and an additional CSV upload, first create a CSV integration and then convert your integration into an API integration. In addition, use a current import start date (e.g. import time span: today's date) as a separator to avoid transaction duplicates.

โ€‹

โ€‹

How do I get my KuCoin CSV file?

Download and import your KuCoin CSV file

The following steps will help you download your KuCoin CSV file and import it into Blockpit:

โ€‹

1๏ธโƒฃ Log in to your KuCoin account.

โ€‹

2๏ธโƒฃ Next to your profile icon, navigate to the menu item Orders and then click Spot Trade History.

โ€‹

3๏ธโƒฃ Now click Export in the top right.

โ€‹

โ€‹

4๏ธโƒฃ Then select the following markets in the sidebar.

โ€‹

โ€‹

โ€‹

โ— Be sure NOT to use any Account History_ files.

โ€‹

โ— Be sure to deselect the sub-item Filled Orders (Show Order Splitting) โšช. (Exception: Trading Bot โžก Filled Orders (Show Order Splitting) โžก Spot โœ…)

โ€‹

โ€‹

โ€‹

โ— When using Futures products, select only the Realized PnL file.

โ€‹

โ€‹

5๏ธโƒฃ In the sidebar, select the relevant transaction period (preferably whole tax years from 01.01. to 31.12.) as well as the time zone UTC-0 and file type CSV, then click Confirm below.

โ€‹

โ€‹

๐Ÿ’ก When using KuCoin subaccounts, a separate Blockpit integration must be created for each subaccount. It is therefore best to download your subaccount CSV files separately by selecting Includes Sub-Accounts before uploading them to your subaccount integration.

โ€‹

6๏ธโƒฃ Once the file has been generated, you can download it. We also recommend renaming the file afterwards after the corresponding transaction period. (Example: History 2020-01-01 - 2020-12-31)

โ€‹

7๏ธโƒฃ Now you can import the file into Blockpit:

โ€‹

  • Case 1: Initial setup (new CSV integration)

    โ€‹

    In your Dashboard, go to the Integrations menu item and then click + Integration > select KuCoin > switch to the CSV tab. (Use this path if you want to track KuCoin purely file-based without an API.)

  • Case 2: Supplementary upload (extend existing integration) In the Dashboard, go to Integrations and click directly on the Upload icon (cloud with an upward arrow) next to the Sync button on your existing KuCoin integration. (Use this path to bridge historical gaps of an existing API integration before the sync timeframe.)

    โ€‹

    Now drag the corresponding file(s) into the field shown below and confirm your input with Save to upload your transactions.

    โ€‹

    โ€‹

โ€‹

๐Ÿ“ Automatic detection of duplicates in file uploads

โ€‹

Blockpit checks every upload per integration for duplicates (time, incoming/outgoing and fee) and skips them. If the integration already contains transactions, Blockpit only imports transactions after the latest existing one, without any notice. Blockpit does not match against API data: remove overlapping time periods from the file beforehand.

โ€‹

โ€‹

๐Ÿ’ก If the upload of your original CSV file does not work, please first try updating your internet browser or use an alternative browser to rule out possible sources of error.

โ€‹

โ€‹

What happens after the import

After Continue, the integration appears in the Dashboard under the Integrations tab; you can find the individual transactions under Transactions.

โ€‹

You can fetch new transactions later with the sync icon of the integration or with Sync all. If the Synced Balance differs from the calculated balance, Blockpit shows the Mismatched Balance notice.

โ€‹

You upload additional files in the Dashboard via the upload icon (cloud) of your integration.

โ€‹

โ€‹

โ€‹

Which data can be imported via KuCoin API key?

โ€‹

Transactions

๐Ÿ“… Transactions older than 365 days are not available via API.

Supported

โœ… Crypto Deposits & Withdrawals (Internal transfers to futures- and subaccounts (excluding automatically generated Trading Bot subaccounts) are currently imported as deposits and withdrawals with the notice: Unlabeled (In/Out). These can be merged to Transfers manually by creating a KuCoin Futures integration or a subaccount integration, or excluded from the transaction list in general.)

โœ… Fees

โœ… KCS (Fees, Refunds)

โœ… Spot Market Trades

โœ… Leveraged Token Trades

โœ… Margin Trades

โœ… Converts

โœ… Dust

โœ… KuCoin Card (Payments & Refunds)

โ€‹

Futures PnL and associated fees are only imported in full when the position is closed.

โ€‹

โœ… Earn (Staking)

โœ… Rewards & Distributions (KuCoin Event, Rewards, Airdrops)

โ€‹

Not Supported

โ›” Fiat Deposits & Withdrawals

โ›” Earn (Savings)

โ›” Trading Bot Transactions (KuCoin does not provide an API endpoint for internal Trading Bot Subaccounts. Transfers to and from these subaccounts are imported via API sync as unlabeled deposits and withdrawals. You can manually edit these transactions into Transfers to/from a dedicated Manual Integration (Trading Bot) to accurately track your capital and record any net profits or losses as realized PnL/Trades once the bot is closed.)

โ›” Fast Trade / P2P / Third Party

โ›” NFTs

โ›” KuCard Inactivity Fee

โ€‹

โ€‹

Synced Balance

Supported

โœ… All Account Balances

โ€‹

Temporary Mismatches

๐Ÿ‘โ€๐Ÿ—จ Open Futures Positions

โ€‹

Until open/unrealized futures positions are closed, the associated assets are not fully displayed in the Synced Balance of your Blockpit integration. However, this has no effect on the tax report, as it is based on your transactions (Calculated Balance). The resulting notice: Mismatched Balance can be ignored in this case. The "Auto Balancing" feature should not be used in this exceptional case!

โ€‹

โ€‹

How do I solve problems with my KuCoin Integration?

โ€‹

Is something still missing?

โ€‹

โ–ธ Supported according to this guide: Create a second integration to compare. The older your integration, the more likely this helps.

โ–ธ Not supported: Add it with the CSV file of your exchange (guide above) or with the Blockpit Excel template.

โ–ธ Not mentioned here: Report it to us via chat request with an example. This lets us extend the import (if technically possible).

โ€‹

If you would rather have your account analysed, the Expert Service (Germany, Austria, Switzerland) helps.

โ€‹

Missing transactions can be found by comparing with the actual history of your exchange. You can add them afterwards directly by CSV file upload (see above) or by migrating your CSV data into our Blockpit Excel template in your Blockpit integration.

โ€‹

Does your Synced Balance not show a balance that is not listed as a mismatch above? Report it to us via chat request with an example. This lets us extend the import (if technically possible).

โ€‹

โš ๏ธ Typical mistakes

โ€‹

โœ— Secret not copied right away โ†’ the Secret is shown only once and can only be copied briefly

โœ— Subaccount expected with the main key โ†’ every subaccount needs its own Blockpit integration with its own subaccount API key

โœ— File uploaded with a time period the API already delivers โ†’ duplicates, because API data is not matched; remove overlapping time periods from the file beforehand

โœ— Upload of the original file fails โ†’ update your internet browser or use a different browser

โ€‹

โ€‹

โ€‹

Did this answer your question?