How to import data via MEXC Global API key or CSV file?

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 CSV file upload.

  1. Log into your MEXC Global account.
  2. Click on the profile button in the upper-right corner and select API Management.
  3. Now enter "blockpit" as Notes for your API key and only grant all View & Read permissions"  as shown in the image below.
  4. Do not use IP whitelisting for Blockpit.



  5. Now click Create, request your Email verification code, enter it along with your authentication code and click Submit.
  6. Your API key and Secret are now visible in the API-List.
    Your Secret is now shown only once and available to copy!
  7. To import your data, you must first create an Integration in the Blockpit Web App.
    To do so, click + Integration in the upper navigation.
  8. Select MEXC from the list of exchanges, and then copy the API key and the secret into the designated fields. Confirm your entries by clicking Create.
❗ Your API key must be extended or renewed in time every 3 months. You can edit the integration and renew your API key there.

 

💡 If you are unable to create an Integration without "Mismatched Balances" using an initial API integration and additional CSV uploads, try creating a CSV Integration first and then convert your Integration into an API Integration afterwards.
 
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 convert a Manual/CSV integration into a Synced Exchange/Wallet integration?

> Set a Start Date for your integration (Import Time Span)
 
 

Which data can be imported via MEXC Global API?

Your complete transaction history always serves as the basis for your tax report. Preferably, automatic API solutions are used to import your transactions. Our team is committed to implementing all API data provided by your exchange for you.

Using the following list, you can identify all products that are implemented:

Transactions:

icon-clock.svg Spot Market Trades older than 30 days are not available via API and have to be imported manually via MEXC CSV/Excel file upload or Blockpit Excel Template.

icon-clock.svg Crypto Deposits/Withdrawals and Futures Trades older than 90 days are not available via API and have to be imported manually via MEXC CSV/Excel file upload or Blockpit Excel Template.

Supported

check.png Crypto Deposits & Withdrawals
check.png Fee Payments
check.png Spot Market Trades
check.png PnL for Future Trades (Profit, Loss, Fee, Funding)

In case of missing transactions, you can identify them in the history of your exchange and help our support team via ticket to include them in our import spectrum.

Not Supported

x.png Margin Trades
x.png Earn: Rewards & Distributions (Staking, Lending, Airdrops, Hard Forks)
x.png Credit Card Trades / P2P Trades
x.png Fiat Deposits & Withdrawals*
*unverified

❗ 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.

Missing transactions can be found by comparing the actual history of your exchange. You can then add these directly to your Blockpit Integration by subsequently uploading your CSV file (see below) or by migrating your CSV data to our Blockpit Excel Template.

How do I get my MEXC CSV file?

  • The following steps will help you to download your MEXC CSV/Excel file and import it into your Blockpit Integration:

    1. Log into your MEXC account.
    2. Go to Orders in the main navigation.



    3. Then click on as needed on Spot Orders / Futures Orders

    4. Now navigate to Trade History and click on Export.





    5. Then select the relevant transaction period (preferably entire tax years from January 1 to December 31) and click Generate.



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

    7. Repeat this step for the Futures Trade History if needed.

    8. Your Deposit / Withdrawal History can be found in the Wallets menu under Funding History.



      Next, select Deposit or Withdrawal and click on Export.



      Repeat this step for the Withdrawal Type as well.

    9. You can now upload the file to your Blockpit Integration in the Dashboard. To do this, click on Edit / Upload CSV in the Integrations tab as shown below.





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


      When uploading your transactions into your Integration, the system does not check for transaction duplicates.
      Transactions that already exist in your Integration must therefore be removed from the CSV file before uploading.

 

Synced Balance:

check.png Complete import scope

If your Synced Balance is displayed incompletely, you can help our support team via ticket to include it in our import spectrum (if technically possible).

> What is the difference between Synced/Manual Integrations and Synced/Calculated Balance?

> Which assets does Blockpit support & Why is the value of some assets not displayed in the Dashboard?

 

How do I solve problems with my MEXC Integration?

 

 

Will MEXC Global automatically deduct the tax for me?

Was this article helpful?