Skip to main content
BitMart - API Import Guide

How to automatically import your BitMart transactions into CoinLedger

Lucas Wyland avatar
Written by Lucas Wyland
Updated over 3 months ago

CoinLedger only needs "Read" or "View" access to import your trade history. This permission protects your accounts. Learn more about API access in this article here.

Jump ahead with this table of contents:

API Import Walkthrough

Step 1:

Login to your BitMart account.

Step 2:

Select Account from the top-right dropdown.

Step 3:

Navigate to the the API Section and click the Set button.

Step 4:

Fill out the form to create an API Key:

  • Memo - This can be any value you’d like

  • Read-only - will be toggled on by default, Trade and Withdraw do not need to be toggled on

Click and and fill out the necessary verification codes.

Step 5:

Copy the API Key you have just created.

Step 6:

Navigate to Step 1. Import. Select Add Account then choose the BitMart tab on CoinLedger. Click on Auto-Import then enter your API Key into the correct field. Click Sync Transactions.

When importing your transaction history via API, you will have the option to specify a start date for your import. This feature is designed to prevent duplicate data from being imported. You can access this feature by hitting the Import Settings drop down menu, as shown below, and then specifying a date for your import to start from. All transactions after this date will be imported. You should not do this if you are importing all of your transactions into CoinLedger for the first time.

BitMart API Limitations

These transaction types are not returned by BitMart's API:

  • Staking rewards

These transaction types aren't currently supported by CoinLedger, and will cause your import to fail:

  • Margin trades

Please note BitMart has a date range limit on their API calls which means they only return data from the past 30 days. As a workaround, we recommend importing via our Universal CSV template instead.

Did this answer your question?