Skip to main content
Gate.io - API Import Guide

How to automatically import your Gate.io transactions into CoinLedger

Lucas Wyland avatar
Written by Lucas Wyland
Updated over a week 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:

Video Import Guide

Step-by-Step Import Instructions

Step 1:

Log in to your Gate.io account

Step 2:

  • Navigate to the API section

  • Click on the User icon in the top right corner and select API Management

Step 3:

Select APIv4 Keys in the menu on the left.

Step 4:

Click on Create API Key button on the right.

  • Enter a remark (this can be anything you'd like) for the API key, make sure Read Only permissions are given to Spot/Margin Trade and Wallet

  • Click Confirm & Create

  • Pass the security verification

Step 5:

Copy the Key and Secret into a safe place.

Step 6:

Navigate to Step 1. Import. Select Add Account then choose the Gate.io tab on CoinLedger. Click on Auto-Import then enter your API Key and API Secret into the correct fields. 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.

Gate.io Import Limitations

Fiat purchases made with debit/credit or bank transfer are exported by Gate.io as one-sided deposits. Fiat purchases made from your fiat wallet balance do get exported correctly (both sides of the transaction are included so CoinLedger is able to parse these correctly as a Fiat Buy transaction)

If you purchased crypto on Gate.io using debit/credit or bank transfer, you will need to import those purchases separately. There are three ways that you can import these fiat purchases into CoinLedger.

  • Add them in-app as single transactions under your Gate.io tab in Step 1. Import

  • Create a CSV template and enter your fiat purchases as Trades

  • Download the Deposits file from Gate.io. When you import this file into CoinLedger your fiat purchases will show up as one-sided deposits. Navigate to Step 3. Review and edit the transaction to change the transaction type to Fiat Buy, and then add in the fiat amount.
    โ€‹


โ€‹

Did this answer your question?