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.
Step 1:
Login to your HitBTC account.
Step 2:
Click the setting icon in the top right corner of the page.
Step 3:
To enable Two-Factor Authentification (2FA), click on Security tab and under Two-Factor Authentification (2FA) section select Add GAuth method.
Write down your backup code, click the checkbox and then click Confirm.
After that, open Google Authenticator on your mobile phone and scan code that you see on your screen, and click Next.
Then enter the six-digit code from your device.
To finish the 2FA setup, open a confirmation email and verify it.
Step 4:
Click on the API Keys tab and click the New API key button.
Note: If you have subaccounts, you will need to create a separate API key for every one of them by selecting them in the Select Account menu. Later simply import every subaccount in a separate HitBTC tab inside CoinLedger.
This window is displayed after API key is successfully created. It is important to save your API Secret and API secret somewhere because they are visible only while creating the API Key.
After that, click on the Order book, History, Spot balance and Payment information checkboxes, and enter 2FA.
Important note: Make sure you clicked on both checkboxes.
Step 5:
Navigate to Step 1. Import. Select Add Account then choose the HitBTC 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.