Spot and margin transactions can be imported into CoinLedger from Kraken using their API import method. Read on for step-by-step instructions on this import process.
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 Guide
API Import Walkthrough
Step 1:
Login to your Kraken account. Linked here is the URL for Kraken Pro. The remaining steps shown below are using the "classic" layout on Kraken Pro, which you should be prompted to select when you first login.
Step 2:
Select your profile from the top-right dropdown menu and navigate to Settings. Then, click API to view and create new API keys.
Direct Link: https://pro.kraken.com/app/settings/api
Step 3:
Next, click the Create API Key button and create a new API key with the settings below. After the settings are filled out, click the Generate Key button.
Be sure the following checkboxes are enabled:
Query Funds
Query Open Orders & Trades
Query Closed Orders & Trades
Query Ledger Entries
Then, at the bottom of the menu turn Custom Nonce Window ON and set the Nonce Window to 10,000.
Step 4:
On the next screen, copy the API Key and API Private Key values from Kraken. These will be needed for later to import your transaction history, and you won't be able to see them again after closing this window.
Once copied, head over to the CoinLedger app.
Step 5:
Navigate to the Import stage. Select Add Account then choose the Kraken tab on CoinLedger. Click on Auto-Import then enter your API KEY into the API Key field. Finally, enter your API Private into the API Secret field. Then, 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.
Kraken API Limitations
If you have a lot of trades, note that your import may take some time, typically around 5-10 minutes but occasionally longer. This is normal and completely expected!