BitMEX Tax Reporting

TokenTax imports BitMEX data for easy cryptocurrency trade tracking and tax filing.

Bitmex crypto exchange

Need to figure out your crypto taxes? Get help for calculating cryptocurrency tax.

How Bitmex tax reporting works

Bitmex is one of the most popular exchanges for crypto margin trading. Unlike typical spot crypto exchanges, you don’t actually buy or sell cryptocurrency on Bitmex; rather, you can enter long and short positions by buying and selling contracts for difference that represent bitcoin and altcoins. 

Because you are trading contracts, you are not trading actual crypto. Crypto only serves as collateral for your margin position. If you open a position worth 1 BTC, you are not triggering a taxable gain or loss on that 1 BTC. Rather, you are taxed on any profits you make. 

It is important that you report your taxes on Bitmex profits. You can calculate your crypto tax for Bitmex with crypto tax software, which supports importing your margin trades from Bitmex via API key.

Citizens of the U.S. and certain other countries are not allowed to use Bitmex. If I’m not allowed to trade on Bitmex, should I still report it on my taxes?

Yes, you should. Bitmex’s terms of service prohibit using their site if you are from a disallowed country like the United States. It’s their responsibility to ensure that you do not use their site. It’s more severe of an issue to not report gains you make on Bitmex than it is to report trading on an exchange that shouldn’t let U.S. users on their platform.

Uploading a BitMEX CSV with TokenTax

  1. Go to your Bitmex wallet (deposits/withdrawals) page (

  2. At the top right, to the right of where it says "Wallet," click "Save as CSV". Note that we require the wallet history, not the trading / execution history.

  3. Upload your CSV file to TokenTax.

Importing a BitMEX API into TokenTax

  1. Open the BitMEX API page ( by first clicking on your account name (email) the top right corner. Then, click Account and Security, and on the left sidebar, click API Keys.

  2. Leave Key Permissions blank and Withdraw unchecked.

  3. Click the Create API Key.

  4. Copy your API key and secret to TokenTax.

Calculate your crypto taxes now

TokenTax does the hard work so you don’t have to.