Step 1:
Log in to your OKX account.
Step 2:
Hover over the Assets dropdown menu and select the Order center option.
Step 3:
Click the tab for Trading account history and then click "Download"
Step 4:
Select Spot under the Account type dropdown and then customize the date range to include all of your transaction history, from account inception. Hit the Export button to finish your request. You will get an email once the statement is ready for download.
Step 5:
You will receive a zip file that can be extracted to obtain a .csv with your transactions. Navigate to Step 1. Import. Select Add Account then choose the OKX tab on CoinLedger. Click on Upload File and drag your CSV file into the box to import your transactions.