How To Do Your OKX Taxes With Koinly

Formerly OKEx, OKX is a popular, global crypto exchange, allowing millions of crypto investors in more than 100 countries access to a variety of investment opportunities including spot trading, crypto derivatives trading, perpetual swaps trading, DeFi, lending, and mining services. Whatever your investments, Koinly can help with your OKX taxes.

CSV

Follow these steps to sync your OKX (OKEx) data automatically to Koinly:

  1. Log in to OKX.
  2. In the top right corner, select your profile icon.
  3. From the drop-down menu, select API.
  4. Enter a name for your API, for example, "Koinly".
  5. Create a passphrase - you'll need to remember this later when connecting to Koinly.
  6. Under permissions, check read.
  7. Select get code next to the email code. Go to the email address associated with your OKX account to get the code, and copy and paste it into the box. You may also need to verify via an authentication app, like Google Authenticator App.
  8. Select confirm.
  9. Copy your API key and API secret key, and paste them into the fields in Koinly.

On Koinly:

  1. Create a free account on Koinly
  2. Complete onboarding until you get to the Wallets page and find OKX (OKEx) in the list
  3. Select API > Paste the API keys you copied above in the appropriate box
  4. Hit Import and wait for Koinly to sync your data. This can take a few minutes
  5. Review your transactions on the Transactions page to ensure everything is tagged correctly and no missing data
  6. Go to the Tax Reports page to view your tax liability!
Notes / Limitations
  • Trading history is only provided for the last 3 months (up to a maximum of 5,000 most recent trades).
  • Other transactions are only provided for the last 1 month.
  • For any older data, we would recommend using CSV files instead
Having trouble connecting OKX (OKEx) with Koinly?

How are OKX transactions taxed?

Crypto tax varies - a lot - depending on where you're located. This said, in general, you'll pay two kinds of tax on your OKX investments - Income Tax or Capital Gains Tax:

  • Capital Gains Tax: Whenever you sell or swap crypto on OKX, you'll likely pay Capital Gains Tax on any profit from that transaction.

  • Income Tax: If you're earning new tokens through OKX products - like lending pools, staking, or with an OKX Savings account - then you'll pay Income Tax based on the fair market value of new tokens or coins on the day you receive them, in your fiat currency.

Want to learn more about crypto tax in your country? See our crypto tax guides.

Does OKX provide tax documents?

No. OKX does not provide tax documents for users. Instead, you'll need to get your OKX transaction history and either calculate your OKX taxes yourself or use crypto tax software to do it for you.

How to get your OKX tax report with Koinly

OKX offers two simple ways to get the tax documents you need - you can either use the OKX tax API to connect to Koinly or export a CSV of your OKX transaction history and upload that to Koinly.

Once connected, Koinly becomes the ultimate OKX tax tool. How? Koinly will calculate your OKX taxes based on your location and generate your crypto tax report, all within 20 minutes. All you’ll need to do at tax time is download the crypto tax report you need from Koinly and file it with your local tax authority.

Does OKX report to tax offices?

OKX requires KYC in order to access all the trading features available. As a large, centralized exchange, it is possible OKX may face pressure from tax offices around the world to share this customer data in order to ensure tax compliance.

Your frequently asked questions

Does OKX have Proof of Reserves?
loading