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.
Direct Link: https://www.bitmart.com/account/en
Step 3:
Navigate to the the API Section and click the Set button.
Direct Link: https://www.bitmart.com/api/en
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.
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.