Skip to main content
All CollectionsImporting Your DataAPI Import - API Import Guide - API Import Guide

How to automatically import your trades using the Binance API

David Kemmerer avatar
Written by David Kemmerer
Updated over a week ago

Jump ahead with this table of contents:

API Import Walkthrough

Step 1:
Navigate to your account.
​Step 2:
After sign in, select your profile icon in the top right corner, and select API Management from the dropdown.

Step 3: Create API Key
You will be prompted to create a new API Key. Enter a label for your key, and click Create. (This label can be anything.)

Step 4: Enter Verification Codes

Next you will need to enter both an e-mail and 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: Edit Restrictions

You will see a green banner notification that says API key created and then it will display your new API Key and Secret Key.

Step 6: De-select Trading Access

Click Edit Restrictions and then deselect Enable Spot & Margin Trading (Remember, CoinLedger requires read only API access. You do not need to grant CoinLedger permission to enable trading.)

Then make sure that Can Read is selected.

Step 7: Save restriction settings

Click Save and you will be prompted to enter your 2FA code again.

Step 8: Enter Into CoinLedger
Navigate to Step 1. Import. 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 Connect.

Binance Import Limitations

Due to limitations with Binance API, import times may take up to 20 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 had any other type of transactions, those transactions will need to be entered separately following the manual import guide.

Did this answer your question?