How to import data via BitMEX API key?

How do I get my BitMEX API key?

  1. Log in to your BitMEX account.
  2. Click on your Profile Symbol in the top navigation, then select API Keys.
  3. Enter a label for your key (e.g. "blockpit").
  4. Leave CIDR empty, Key Permissions set to "-" and Withdrawal unchecked.
  5. For Security verification, you need to enter your Two-Factor Token.

    Bitmex Blockpit API settings.png

  6. Now finish by selecting Create API Key.
  7. Your API key and Secret are now visible in the API-List.
    Your Secret is now shown only once and available to copy!
  8. To import your data, you must first create an Integration in the Blockpit Web App.
    To do so, click + Integration in the upper navigation.
  9. Select BitMEX from the list of exchanges, and then copy the API key and the secret into the designated fields. Confirm your entries by clicking Create.

Which data can be imported via BitMEX 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:



check.png Deposits & Withdrawals
check.png Spot Market Trades
check.png Derivatives Trades PnL (Profit, Loss, Fee, Funding)

If transactions from your earning history are missing, you can help our support team via ticket to include them in our import spectrum.

Not Supported

x.png Buy via Credit Card (Buy Crypto)*
x.png Direct Conversions
x.png Earn*

If an import of your transactions via API is not available on exchange side, you can also add these transactions manually or by migrating your CSV data into our Excel template.


Synced Balance:

check.png Complete import scope

Please note the information about how the asset balance is calculated in this article.
If balances are displayed incorrectly, you can help our support team via Ticket to add them to our API import scope.

Here you will find instructions on how to create an API-Integration in Blockpit.


Will BitMEX automatically deduct the tax for me?

Was this article helpful?