Importing Transactions into TokenTax with API

TokenTax connects to all major exchanges with API

  • You can easily sync your transactions with TokenTax by connecting an API key.

  • API key instructions for all major exchanges can be found on our exchanges page or in this article below.

  • Syncing will import your historical price data if the exchange API supports it. If it doesn't, our instructions will indicate as such — please use CSV instead. An API connection also automatically syncs new transactions to TokenTax as they happen.

  • If your exchange doesn't support API or historical data, you can instead upload a CSV or use our manual upload template. Still having trouble getting your data from exchange to TokenTax? Message us and we'll help.

  • If you're having issues with API syncing, check out our article on the matter here.

Exchange instructions

Coinbase crypto exchange logo

Coinbase

We connect to Coinbase with OAuth2:

  1. On the TokenTax API import page (https://tokentax.co/import), click Authorize with Coinbase.

  2. You'll be taken to an authorization page on Coinbase.com.

  3. If prompted, log in to your Coinbase account.

  4. Click Authorize. This will connect Coinbase to TokenTax.

If you'd instead like to use an API key for Coinbase:

  1. On Coinbase, click the silhouette icon at the top right and select Settings. Then, at the top menu, select API Access (https://coinbase.com/settings/api). 

  2. Click + New API Key. If needed, verify with your verification code. 

  3. Under accounts, check the box next to all.

  4. Under permissions, select only all permissions that end in read.

  5. Coinbase API settings for crypto tax import
  6. Leave Allowed Ip Addresses blank

  7. At the top right of the Coinbase import box, click "Use API Key." (https://tokentax.co/import)

  8. Copy your API key and secret to TokenTax.



Coinbase Pro crypto exchange logo

Coinbase Pro (GDAX)

  1. On Coinbase Pro, open the API Settings (https://pro.coinbase.com/profile/api) by clicking your user icon at the top right.

  2. Click the New API Key button.

  3. In the permissions, select View.

  4. Copy your passphrase (you won't be able to see it after clicking Create).

  5. Click Create API Key.

  6. Copy your API key, API secret, and passphrase to TokenTax (https://tokentax.co/import).



Binance crypto exchange logo

Binance

  1. Go to your Binance user settings (https://www.binance.com/userCenter/myAccount.html) by hovering over the top right silhouette icon and clicking your email.

  2. If you haven't yet done so, click Enable under the API section. Then click API Settings.

  3. Create a new API key by entering a label and clicking the Create New Key button.

  4. The link to create the API key will be emailed to you. Click on the link to view your API key and secret, and then click Edit and uncheck Enable Trading and check Unrestricted for the IP address restrict.

  5. Copy your API key and secret to TokenTax (https://tokentax.co/import).



Binance US Logo

Binance US

  1. Hover over your user icon at the top right and click API Management (https://www.binance.us/en/usercenter/settings/api-management).

  2. Create a new API key by entering a label and clicking the Create New Key button.

  3. The link to create the API key will be emailed to you. Click on the link to view your API key and secret, and then click Edit and uncheck Enable Trading and check Unrestricted for the IP address restrict.

  4. Copy your API key and secret to TokenTax (https://tokentax.co/import).



Bibox crypto exchange logo

Bibox

The Bibox API does not provide historical transactions beyond 3 months. Please upload a CSV instead in order to include your transaction history.

  1. Go to your Bibox API settings (https://www.bibox.com/NewAPI). Hover over the top right silhouette icon, click Account Information, then scroll down to the API section and click Add.

  2. Give your key a name and select only the read information permission.

  3. Click to show your API secret, then copy your API key and secret to TokenTax (https://tokentax.co/import).



Bitmex crypto exchange logo

BitMEX

  1. Open the BitMEX API page (https://www.bitmex.com/app/apiKeys) 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 (https://tokentax.co/import).



Bitmarket crypto exchange logo

BitMarket

  1. Click Account and then API Access.

  2. Create a new key, selecting only Account balance retrieval, Download account balance history, and Download trading history.

  3. Paste your API key and secret to TokenTax (https://tokentax.co/import).



Bitfinex crypto exchange logo

Bitfinex

  1. Open the Bitfinex API (https://www.bitfinex.com/api) page by using the User Settings dropdown at the top right and clicking API.

  2. Click Create New Key.

  3. Keep the default permissions unchanged (all read permissions enabled).

  4. Enter a label for the API key.

  5. Click Generate API key.

  6. Confirm the new API key from the verification email you receive from Bitfinex.

  7. Copy your API key and API secret to TokenTax (https://tokentax.co/import).



Bithumb crypto exchange logo

Bithumb

The Bithumb API does not give historical transactions beyond 30 days. Please upload a CSV instead to include your transaction history.

  1. Click My Page then API Management.

  2. In the API activation section, select permissions for only trade transaction log and member's trade log.

  3. Click Create API.

  4. Paste your API key and secret to TokenTax (https://tokentax.co/import).



Bitstamp crypto exchange logo

Bitstamp

  1. Open the Bitstamp API page (https://www.bitstamp.net/account/security/api/) by navigating to your account page and selecting API Access under the Security section.

  2. Click New API Key and enable permissions for only account balance and user transactions.

  3. Click Generate Key.

  4. Click Activate.

  5. Confirm the API key via the verification email.

  6. Copy your API key, API secret, and Bitstamp user ID to TokenTax (https://tokentax.co/import).



Bittrex crypto exchange logo

Bittrex

IMPORTANT: The Bittrex API does not provide historical transactions past 30 days or deposits/withdrawals data. Please upload a CSV instead to include your transaction history.

  1. In Bittrex, go to Settings and then click on the API Keys tab.

  2. Click Add new key.

  3. Enable only the Read Info permission for the new key.

  4. Click Save.

  5. Copy your API key and secret to TokenTax (https://tokentax.co/import).



Bleutrade crypto exchange logo

Bleutrade

  1. Go to your Bleutrade API Page.

  2. After confirming your password, click Generate a new API key.

  3. Paste your API key and read only secret to TokenTax (https://tokentax.co/import).



CEX crypto exchange logo

CEX.IO

  1. Open the CEX API page (https://cex.io/trade/profile#/api).

  2. Click Generate API Key and enable only account balance permissions.

  3. Click Generate Key.

  4. Copy your API key, API secret, and User ID to TokenTax (https://tokentax.co/import).

  5. On CEX, click Activate next to your key.



Cobinhood crypto exchange logo

COBINHOOD

  1. Go to your API page (https://cobinhood.com/api) by clicking the top right menu dropdown and selecting API Key.

  2. Under Create New Key, check only the boxes for Trading - Read, Ledger - Read, Withdraw - Read, and Margin Trading - Read.

  3. Paste your API key and secret to TokenTax (https://tokentax.co/import).



Coinspot crypto exchange logo

CoinSpot

The CoinSpot API only offers read/write access. All API keys from this exchange give full access to funds. We highly recommend that you upload a CSV instead.

  1. Go to your API page (https://www.coinspot.com.au/my/api) by clicking Account at the top right corner and selecting API.

  2. Click Generate API Key.

  3. Paste your API key and secret to TokenTax (https://tokentax.co/import).



Cryptopia crypto exchange logo

Cryptopia

Cryptopia has shut down, but you can still upload a CSV of your trade history.



Deribit crypto exchange logo

Deribit

1. On Deribit, mouse over your username at the top right, then click My Account, then click API (https://www.deribit.com/main#/account?scrollTo=api).

2. Click Add a new key. Set all options to read. You can leave Is key default checked or unchecked.

3. Copy your API key and secret to TokenTax (https://tokentax.co/import).

Gate IO crypto exchange logo

Gate.io

The Gate.io API only offers read/write access. All API keys from this exchange give full access to funds. Furthermore, the API does not provide historical transactions beyond the last 100 trades. We highly recommend that you upload a CSV instead.

  1. Go to your API Keys (https://www.gate.io/myaccount/apikeys) page by selecting Wallets, and then on the left sidebar, clicking API Keys.

  2. Enter your password to reveal your API key and secret.

  3. Paste your API key and secret to TokenTax (https://tokentax.co/import).



Gatecoin crypto exchange logo

Gatecoin

Gatecoin has shut down, but we can still accept any records you have via CSV/spreadsheet.

  1. Go to your API keys page by clicking on your user ID at the top right and then selecting API Keys.

  2. Name your key and leave the allowed IP addresses field blank. Leave key permissions on read only.

  3. Generate your key and paste your public (API) key and private (secret) key to TokenTax (https://tokentax.co/import).



Gemini crypto exchange logo

Gemini

  1. Open the Gemini API (https://exchange.gemini.com/settings/api) page by clicking your name at the top right menu and selecting API Settings.

  2. Click Create a New API Key.

  3. In the API key settings, disable Trading and enable Auditor.

  4. Copy your API key and secret to TokenTax (https://tokentax.co/import).

  5. Click Confirm once you have copied over the API information.



HitBTC crypto exchange logo

HitBTC

  1. Go to your API keys (https://hitbtc.com/settings/api-keys) page by clicking the top right gear icon, then clicking the API keys tab.

  2. Click New API Key.

  3. Enable permissions for Order Book, History, and Trading Balance as well as for Payment Information.

  4. Copy your API key and secret to TokenTax (https://tokentax.co/import).



Huobi crypto exchange logo

Huobi

The Huobi API does not provide historical transactions past 7 days. Please upload a CSV instead to include your transaction history.

  1. Click your account name at the top right and then select API Management.

  2. Under Create New Key, give your API key a name and click Create.

  3. After email authentication, view your access key (API key) and private key (secret key).

  4. Copy your API key and secret and paste to TokenTax (https://tokentax.co/import).



IDEX crypto exchange logo

IDEX

1. Copy your IDEX wallet address. You can find your wallet address by mousing over the silhouette icon at the top right of the exchange homepage (http://idex.market).

2. Paste your IDEX wallet address to TokenTax (https://tokentax.co/import).



Kraken crypto exchange logo

Kraken

The Kraken API does not provide historical transactions. Please upload a CSV instead to include your transaction history.

  1. Go to your API keys (https://www.kraken.com/u/settings/api) page by clicking your username at the top right, clicking settings, and then selecting the API tab.

  2. Click Generate New Key.

  3. Enable the following permissions: Query Funds, Query Closed Orders & Trades, Query Ledger Entries.

  4. Click Generate Key.

  5. Copy your API key and private (secret) key to TokenTax (https://tokentax.co/import).



KuCoin crypto exchange logo

KuCoin

  1. Open the Kucoin API page (https://www.kucoin.com/account/api) by hovering over your user icon at the top right and clicking API Management.

  2. Click Create API.

  3. Give your key a name and a passphrase. Copy down the passphrase, as it will not show again.

  4. Enable only the General permission.

  5. Select No limit for IP limit.

  6. Copy your API key, secret, and passphrase to TokenTax (https://tokentax.co/import).



Liquid crypto exchange logo

Liquid

  1. Go to your API keys (https://app.liquid.com/settings/api-tokens) page by clicking the dropdown menu at the top right and selecting API Tokens.

  2. Click Create A New Token

  3. Select read for Accounts, Executions, and Orders.

  4. Paste the token ID (API key) and token secret (API secret) to TokenTax (https://tokentax.co/import).



Livecoin crypto exchange logo

Livecoin

Livecoin's API and CSV export both only provide the last 30 days of transactions. We recommending adding your transactions to our manual template or contacting Livecoin support for a full CSV transaction log.

  1. Go to the API keys (https://www.livecoin.net/api?lang=en) page by clicking Account and then selecting API.

  2. At the top of the page, click Add Key.

  3. Select Read only and click Confirm.

  4. Paste your API key and secret to TokenTax (https://tokentax.co/import).



OKEx crypto exchange logo

OKEx

  1. Click the My API tab.

  2. Click Create new API.

  3. Enter a name.

  4. Authenticate and then click Confirm.

  5. Click View next to the newly created API key.

  6. Copy your API key and secret to TokenTax (https://tokentax.co/import).



Poloniex crypto exchange logo

Poloniex

  1. Open the API keys (https://poloniex.com/apiKeys) page by clicking the settings icon and clicking API Keys.

  2. Click the Create New Key button.

  3. Enter your two-factor authentication code if necessary.

  4. Confirm the new API key from the verification email you receive from Poloniex.

  5. Back on Poloniex, deselect the Enable Trading and Enable Withdrawals checkboxes of the new API key. Set the IP access restriction to Unrestricted.

  6. Paste your API key and secret to TokenTax (https://tokentax.co/import).



QuadrigaCX crypto exchange logo

QuadrigaCX

  1. Go to the API setup page (https://www.quadrigacx.com/api_setup) by clicking the account name at the top right and selecting API setup.

  2. Click Add new API.

  3. Give your API a name and give only permissions for list balances and list transactions. Leave the withdrawal fields blank.

  4. Copy your API key, API secret, and client (user) ID to TokenTax (https://tokentax.co/import).



The Rock Trading crypto exchange logo

The Rock Trading

  1. Access the API keys (https://www.therocktrading.com/en/account/1/edit) page by first clicking your username at the top right. Then, select My Personal Data, and then click API keys on the left sidebar.

  2. Click New. Do not select trade or withdrawal privileges.

  3. Click your new API key to see the secret.

  4. Paste the API key and secret to TokenTax (https://tokentax.co/import).



Tidex crypto exchange logo

Tidex

  1. Access your API keys (https://tidex.com/exchange/settings/api-access) page by clicking on your username at the top right, and on the left sidebar of the next page, clicking on settings -> API.

  2. Give your key a name and leave the IP white list blank. Check only Info and click save.

  3. Copy the API key and secret to TokenTax (https://tokentax.co/import).



YoBit crypto exchange logo

YoBit

The YoBit API only offers read/write access and the last 7 days of transactions. All API keys from this exchange give full access to funds. We highly recommend that you upload a CSV instead.

  1. Access the API keys (https://yobit.net/en/api/keys/) page by hovering over your username at the top right and selecting API Keys.

  2. Select info only and then click create new key.

  3. Copy your API key and secret to TokenTax (https://tokentax.co/import).



itBit crypto exchange logo

itBit

The itBit API only offers read/write access. All API keys from this exchange give full access to funds. We highly recommend that you upload a CSV instead.

  1. Access your API settings (https://www.itbit.com/api).

  2. Request a REST API key.

  3. Copy your API key, API secret, and user ID to TokenTax (https://tokentax.co/import).

Calculate your crypto taxes now

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

Exit hijack mode

Show admin panel