This page explains how to get trade history from OKX (formerly OKEx).
【For those who have completed the file download.】
When uploading the downloaded files to cryptact, please upload them in order from the oldest transaction date. For more details, please refer to the help page below.
Contents
1.Our Support Status for OKX
1.1 Types of transactions that can be retrieved
You can check the types of files supported by cryptact on the "Supported Exchanges & Blockchains" page. Please click on the relevant exchange to view the details.
-
Currently, we only support spot trades, futures trades, margin trades, and swap trades as we don't have enough samples for other trade types. (We don't support "seagull" transaction histories)
-
We stopped supporting trade history for classic accounts when OKEx was rebranded as OKX.
- Due to the specific formatting of exchange-provided files, the line numbers reported in cryptact’s error messages may not correspond directly to the line numbers in your original file. Therefore, to identify which entry is causing the error, please open the file and locate the issue based on the error description.
1.2 Time period that can be retrieved
Due to limitations on the exchange’s side, only up to the past 3 months of transaction history can be retrieved. Consequently, any transactions older than 3 months cannot be automatically reflected. For this reason, it’s necessary to regularly download files within every three-month period.
If the uploaded file contains transaction details that can be interpreted by cryptact, the data will be automatically reflected. However, due to the specifications of certain exchanges, some files may lack transaction histories or contain unclear information, making automatic processing impossible. In such cases, if the transaction history is not supported via API or file upload, we kindly ask you to upload the data using a Custom File.
2.How to get trade history from OKX
1. Log in, click "Assets", and choose "Order center".
2. In the "Order center" tab, select "Trading account history", and click "Download".
3. Set Account Type to All, choose the period, and click "Export". When the status changes to Processing, and then to Ready after a few minutes, click the "Download" button next to it.
Please note:
The download file is a zipped file.
Please unzip it before uploading it to cryptact.
Reference for Windows users
Please install 7-Zip, and follow the below steps to unzip the file.
「7-Zip」https://sevenzip.osdn.jp/download.html
1) Right-click the file you want to unzip, and select "7-Zip" from the menu.
2) When the 7-ZIP menu appears, click "Extract files…" option.
3) Check which folder the unzipped file will be placed. If you want to the unzipped file to be placed in a different folder, click the "" button beside the "Extract to" field.
4) Click "OK".
3.Upload the OKX file to cryptact
Select the exchange from this screen and upload the file to the corresponding upload box.