Skip to main content

Binance.com - API Import Guide

How to automatically import your trades using the Binance API

Written by David Kemmerer

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

Video Guide

NOTE: Step 3 has changed from the one in the video; check the updated screenshots in this guide below.

API Import Walkthrough

Step 1:

Sign in to your Binance account.

Step 2:

Select your profile icon in the top right corner and navigate to the Account menu, then click to expand the dropdown menu. You will then find the API Management option. Click on it.

Step 3:

Select "Create Tax Report API".

Step 4:

Next, you will need to enter both an e-mail and a 2FA verification code. Click Send, and you will receive the e-mail code in your inbox. Retrieve the 2FA code from your authenticator app, and after entering both codes, click Submit.

Step 5:

Copy the API Key and Secret Key.

Note that Binance will not show your Secret Key in full again after you leave this page.

Step 6:

Navigate to the Import page. Select Add Account, then choose the Binance tab on CoinLedger. Click on Auto-Import, then enter your API Key and API Secret into CoinLedger. 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.

Binance API Limitations

Due to limitations with the Binance API, import times may take up to 30 minutes to complete.

The following transaction types get pulled into your CoinLedger account when you link your Binance account via API:

  • Spot market trades

  • BNB conversions

  • Liquid swaps

  • Fiat trades

  • P2P trades

  • Crypto deposits and withdrawals

  • Convert trades

  • Commission Rebates

  • Referral kickbacks

  • Dividends

  • Flexible Savings

  • Launchpool

  • Savings Trail Fund

  • Fixed Savings

  • Activities

  • Locked Staking

  • DOT Slot Auction

  • DeFi Staking

  • Pool Savings

  • Dual Investment

  • Distributions

  • Stakings

  • Airdrops

  • Trading rewards

  • Lucky Draws

  • Mainnet Swaps

  • Black Friday Settlement

  • Refunds

  • Giveaways

  • Cashbacks

  • Buybacks

  • Trading Competitions

  • Learn & Earn programs

  • Monthly token unlock programs

  • Launchpads

  • Bounty Programs

  • Token Swaps

If you have any other type of transactions, those transactions will need to be entered separately following the Manual Import Guide.

Did this answer your question?