Filing taxes on BitMEX

TokenTax connects to BitMEX for easy crypto-currency trade tracking and tax filing.


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. TokenTax supports importing your margin trades from Bitmex via API key with a plan that supports margin trading.


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.

Connecting BitMEX with 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 (

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

  3. Upload your CSV file to TokenTax (

Frequently Asked Questions

How Crypto Taxes Work: Our Getting Started Guide

Check out our 2019 crypto tax guide. TokenTax makes it easy: automatically import your crypto trading from any exchange and generate the required crypto tax forms!

Read more

How Does TokenTax Work?

A quick rundown of how TokenTax works and why we are the top cryptocurrency tax software. Import your crypto trading from any exchange and easily create the required tax forms.

Read more

How to File Crypto Taxes on Your Tax Return

It's required to include crypto profits on your taxes. We explain how to put together your tax return with your crypto capital gains and income included.

Read more

Get started with TokenTax

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

Exit hijack mode

Show admin panel