Phemex logo

How to Connect Phemex with Koinly

Phemex pairs perfectly with Koinly to make crypto taxes easy. Koinly completely supports Phemex and makes tax reporting a breeze.

API Import CSV File Import
Last updated: Monday, 29 August 2022

How to connect Phemex with Koinly

One of the largest crypto exchanges worldwide, Phemex lets crypto investors of all experience levels buy, sell, trade and stake their crypto assets. Whatever your investments, Koinly can help you do your Phemex taxes.

How to generate a tax statement from Phemex

You might be wondering, does Phemex provide CSV tax and trade history reports? Is it even possible to get tax info and statements from Phemex? The good news is, while Phemex might not provide tax forms and documents, it does offer two easy ways to generate all the information you need for your crypto taxes.

Phemex pairs with Koinly through CSV file import or API integration to make reporting your crypto taxes easy. Once connected, Koinly becomes the ultimate Phemex tax tool. How? Koinly will calculate your Phemex taxes based on your location AND generate your EOFY tax report, all within 20 minutes! All you’ll need to do at tax time is download your Phemex tax statement from Koinly and file it with your local tax authority. Done!

Connect to Koinly with the Phemex tax report API

On Phemex

  1. Log in to your Phemex account and click on your profile icon in the top right corner.
  2. From the left hand menu, select API management.
  3. Select create new API key.
  4. Select default API entry.
  5. Give your API key a name - for example, Koinly.
  6. Under IP address, select don't bind.
  7. Under permissions, select read-only.
  8. You'll be sent a verification code for your API key, enter the verification code from your email address.
  9. Copy your API key and API secret. Please note your API secret is only available once, you won't be able to access it again after you've closed the pop-up.

On Koinly

  1. Sign up or log in into Koinly and head to the wallets page.
  2. Add a new wallet: Phemex.
  3. Select setup auto-sync.
  4. Paste the API key and API secret.
  5. Select secure import.

How to generate your Phemex account statements

You can't download a complete transaction history CSV file from Phemex, so you'll need to download several different CSV files to import to Koinly. The files you can download are:

  • Withdrawals report
  • Spot wallet funds report
  • Contract trade funds report
  • Investment report
  • Spot trading report
  • Deposits report
  • Contract trading closed PNL report

If you're uploading these CSV files to Koinly - you'll only need the first five reports as they include all the information Koinly needs to calculate your crypto taxes. Follow the steps below - or use Phemex's guide on how to get the different account statements.

On Phemex

Withdrawals report

  1. Log in to Phemex and select assets in the top right corner.
  2. In the menu on the left, select withdraw.
  3. Scroll down to recent history and select view all.
  4. Select generate withdrawals report.
  5. Select the time period and desired symbol(s) for your report.
  6. Select generate.
  7. It may take up to a day to generate your report - once the status of the report changes from 'generating' to generated, you'll be given the option to download your report.
  8. Select download.

Spot wallet funds report

  1. Log in to Phemex and select assets in the top right corner.
  2. In the menu on the left, select funds.
  3. Select spot wallet from the new top navigation bar.
  4. Select generate spot history report.
  5. Select the time period and desired symbol(s) for your report.
  6. Select generate.
  7. It may take up to a day to generate your report - once the status of the report changes from 'generating' to generated, you'll be given the option to download your report.
  8. Select download.

Contract trade funds report

  1. Log into Phemex and select assets in the top right corner.
  2. In the menu on the left, select funds.
  3. Select contract trade accounts from the new top navigation bar.
  4. Select generate contract history report.
  5. Select the time period and desired symbol(s) for your report.
  6. Select generate.
  7. It may take up to a day to generate your report - once the status of the report changes from 'generating' to generated, you'll be given the option to download your report.
  8. Select download.

Investment report

  1. Log in to Phemex and select assets in the top right corner.
  2. In the menu on the left, select funds.
  3. Select investment account from the new top navigation bar.
  4. Select generate investment history report.
  5. Select the time period and desired symbol(s) for your report.
  6. Select generate.
  7. It may take up to a day to generate your report - once the status of the report changes from 'generating' to generated, you'll be given the option to download your report.
  8. Select download.

Spot trading report

  1. Log into Phemex and select assets in the top right corner.
  2. In the menu on the left, select spot history.
  3. From the new drop down menu, select trade history.
  4. Select generate spot trading report.
  5. Select the time period and desired symbol(s) for your report.
  6. Select generate.
  7. It may take up to a day to generate your report - once the status of the report changes from 'generating' to generated, you'll be given the option to download your report.
  8. Select download.

On Koinly

  1. Sign in to Koinly and select Wallets.
  2. Select add new wallet: Phemex.
  3. Select import from file.
  4. Upload your CSV files from Phemex.

Good to know

If you're using the CSV file upload method make sure to import your deposits, withdrawals and trades for ALL trading years and not just the current year. This will allow Koinly to correctly calculate your taxable position. Phemex only lets you generate 3 months worth of transaction data at a time, so you may need to download multiple files to include your full transaction history.

Koinly will automatically aggregate all Closed PNL transactions for the same contract to a single daily transaction. All fees and funding payments will be saved as a single daily transaction for all different contracts combined. This is done to avoid importing thousands of small transactions of insignificant value which is often included in the Phemex CSV files. This means that you might see only 100 transactions on Koinly instead of 1,000 or 2,000 using another crypto tax platform. This makes it easier for you to verify that transactions are imported correctly, and the resulting gain/loss will be exactly the same.

How do I check if my Phemex import is accurate?

Need help importing your Phemex transaction data?

It's really helpful to use our Getting Started Guide before reviewing your transactions. This can help you identify and resolve any issues in no time at all.