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:
β
Log in to your MEXC account.
β
Select
Ordersin the main navigation.β
β
Then, as needed, click Spot Orders or Futures Orders.
β
Now navigate to Trade History and click
Export.β
β
β
Then select the relevant transaction period (preferably whole tax years from 01.01. to 31.12.) and click
Generate.β
β
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).
β
If needed, repeat this step for the Futures Trade History (or Capital Flow).
β
You can find your deposit / withdrawal history in the Wallets menu under Funding History.
β
β
Select
Deposit, clickExport, select the period and clickGenerate.
β
Repeat the same step for Withdrawal.
β
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.
β
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
EXCELas 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 HistoryandWithdrawal History.Futures (optional): Select
Futures Trade History,Futures Capital Flowand Copy Trade Order History. (β οΈ Do NOT select "Futures Position History" or "Futures Statement").β
Fiat / Earn (optional): Select
OTC/P2P OrdersandFlexible/Fixed Earn.
Click
Generateand download the finished files underExport History.
β
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 theCSVtab. (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
Saveto 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.
β
You can edit or delete the integration at any time: > How to create, sync, edit, convert, group, delete and deactivate integrations?
β
β
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
β
β
β




