Skip to main content

MEXC Global: Transaction import via API & CSV/Excel

At a glance

πŸ‘οΈ Blockpit imports MEXC transactions via API key or from a CSV/Excel file: Crypto Deposits & Withdrawals, Fee Payments, Spot Market Trades and PnL for Future Trades.

​

Import method: API Β· CSV

​

​

How do I get my MEXC Global API key?

API is the initially preferred method of integration.

​

If necessary, additional CSV/Excel 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/Excel file upload subsection.

​

1️⃣ Log in to your MEXC account.

​

2️⃣ Click on your profile icon and select API Management.

​

3️⃣ Now enter blockpit as the note for your API key and grant only all Read information permissions shown in the image.

​

Enter blockpit as Notes and grant only all View & Read permissions shown in the image.

​

4️⃣ Do not use IP whitelisting for Blockpit.

​

​

5️⃣ Then click Create, request your Email verification code, enter it together with your authenticator code and confirm with Submit.

​

6️⃣ Your API key and Secret are now shown in the API list.

​

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

​

7️⃣ Open + Integration (or, in the Dashboard under the Integrations tab, click + Integration).

​

8️⃣ Select MEXC in the list of exchanges (dialog Add MEXC) and then copy the API key and the Secret into the designated fields. Confirm your entries with Continue.

​

❗ Your API key must be extended or renewed in time every 3 months. You can edit the integration and enter the new API key.

​

πŸ’‘ If you cannot achieve an integration without "Mismatched Balances" with an initial API integration and an additional CSV/Excel 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 MEXC CSV/Excel file?

Download and import your MEXC CSV file

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

​

  1. Log in to your MEXC account.

    ​

  2. Select Orders in the main navigation.

    ​

    ​

  3. Then, as needed, click Spot Orders or Futures Orders.

    ​

  4. Now navigate to Trade History and click Export.

    ​

    ​

    ​

  5. Then select the relevant transaction period (preferably whole tax years from 01.01. to 31.12.) and click Generate.

    ​

    ​

  6. Once the file has been generated, you can download it under Export History. We recommend naming the file after the corresponding period (e.g. MEXC Trades 2023-01-01 - 2023-12-31.xlsx).

    ​

  7. If needed, repeat this step for the Futures Trade History (or Capital Flow).

    ​

  8. You can find your deposit / withdrawal history in the Wallets menu under Funding History.

    ​

    ​

    • Select Deposit, click Export, select the period and click Generate.

    ​

    • Repeat the same step for Withdrawal.

    ​

  9. Then select the relevant transaction period (preferably whole tax years from 01.01 to 31.12) and click Generate.

    ​

    ​

    Also repeat this step for the type Withdrawal.

    ​

  10. Alternative / New central collective export (Account Data Export):

    ​

    If you want to export your history collectively in one place (available for data from October 2024), open Help Center > Self-Services > Account Data Export (or directly https://mexc.com/help-center/export):

    ​

    • Select EXCEL as the format (do not select PDF).

    • Define the desired time period.

    • Select ONLY the following data sets:

      ​

      • Spot: Select only Spot Trade History.

        ​

        (⚠️ Do NOT select "Spot Statement" or "Spot Order History", to avoid erroneous duplicates).

        ​

      • Funding History: Select Deposit History and Withdrawal History.

      • Futures (optional): Select Futures Trade History, Futures Capital Flow and Copy Trade Order History. (⚠️ Do NOT select "Futures Position History" or "Futures Statement").

        ​

      • Fiat / Earn (optional): Select OTC/P2P Orders and Flexible/Fixed Earn.

    • Click Generate and download the finished files under Export History.

    ​

  11. 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 MEXC > switch to the CSV tab. (Use this path if you want to track MEXC 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 MEXC 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/Excel 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 MEXC Global API key?

​

Transactions

πŸ“… Spot Market Trades older than 30 days are not available via API.

​

πŸ“… Crypto Deposits/Withdrawals and Futures Trades older than 90 days are not available via API.

Supported

βœ… Crypto Deposits & Withdrawals

βœ… Fee Payments

βœ… Spot Market Trades

βœ… PnL for Future Trades (Profit, Loss, Fee, Funding)

​

Not Supported

β›” Margin Trades

β›” Earn: Rewards & Distributions (Staking, Lending, Airdrops, Hard Forks)

β›” Credit Card Trades / P2P Trades

β›” Fiat Deposits & Withdrawals

​

❗ Assets that are initially listed with β€œObservation – ST TAG” are not available via API. The β€œST Tag” activates a countdown of approximately 20 to 30 days in the background. If certain criteria are not met, the asset will be delisted by MEXC.

​

​

Synced Balance

βœ… Complete balance

​

​

How do I solve problems with my MEXC Global 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/Excel file upload (see above) or by migrating your CSV/Excel 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

βœ— API key not renewed in time β†’ the key has to be renewed every 3 months; edit the integration and enter the new 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?