How to Report Your Phemex Taxes

Coinpanda has direct integration with Phemex to simplify tracking your trades and tax reporting. Calculate your taxes and generate all required tax reports and forms easily.

API import CSV file import
RECOMMENDED

Import trades automatically with API

We are only requesting view permissions. This does not give us access to your private keys nor the ability to move your funds.

To add your Phemex account to Coinpanda, follow these steps:

  1. Go to the Phemex website, hover over your email address in the top-right corner, then click ‘API Management’.
    (https://phemex.com/account/api-management)
  2. Click the ‘Create new API key’ button.
  3. Select ‘Default API entry’ and click ‘Next’.
  4. Give your API key a name (ex: Coinpanda), make sure that ‘Don’t bind’ is selected, and select ‘Read-Only’ for permissions. Then click ‘Confirm’.
  5. Enter your 2FA code when asked.
  6. Copy your API Key and API Secret to Coinpanda.

The Phemex API has some limitations so that only the trade history (spot and contracts) from the past 2-3 months seems to be available from their API. If not all transactions are imported after API sync has completed, then please contact Phemex support about this issue. We are not able to import data that is not made available to us by Phemex.

Upload a CSV file to Coinpanda

Trade history (spot)

  1. Hover over ‘Assets’ in the top menu, then click ‘Spot History’ > Trade History’.
    (https://phemex.com/assets/spot-trade-history)
  2. Click on ‘Export Spot trade history’.
  3. Upload the CSV file to Coinpanda.

Note: You can also upload the order history CSV file if you prefer.

Deposits and withdrawals

  1. Hover over ‘Assets’ in the top menu, then click ‘Deposit’.
  2. Click on ‘View All’ a little bit down on the page.
    (https://phemex.com/assets/details?tab=Deposit)
  3. Click on ‘Export Deposit History’ and select a time range for your deposit history (max 3 months). Click ‘Export’ to download the CSV file.
  4. Repeat the previous step also for withdrawals by selecting ‘Withdraw’ in the tab.
  5. Upload the CSV file(s) to Coinpanda.

Phemex does not currently allow the export of Closed PnL which is necessary for tax calculations if you have traded futures. Note that you can also import the contract trade history CSV file, but this data cannot be used for tax calculations. The transactions imported will not affect any of your balances or gain/loss calculations.

Please contact Phemex support if you have any further questions regarding exporting CSV files.

Closed PnL using Coinpanda generic file

If not all Closed PnL transactions are imported from API, you can get around this by manually adding all profit and loss values to the Coinpanda generic file before uploading this file to your Phemex wallet on Coinpanda.

  1. Hover over ‘Assets’ in the top menu, then click ‘Contract History’ > ‘PNL Details’.
    (https://phemex.com/assets/contract-pnl-details)
  2. Select the ‘Closed PNL’ tab.
  3. Copy all values from the last column ‘Realized PNL’ to Coinpanda’s generic file.
    Positive values: Receive (Realized P&L)
    Negative values: Send (Realized P&L)

Note that the ‘Realized PNL’ values include also any funding fees or exchange fees paid. It’s not entirely clear from a tax perspective if such fees can be considered as capital losses directly, so if you want to exclude this, then you can simply copy values from the ‘Closed PNL’ column instead.

phemex 1

This is how the Coinpanda generic Excel file will look like after adding all transactions:

phemex 2 new

You will need to do this for both the ‘BTC Contract Trade Account’ and ‘USD Contract Trade Account’ tab.

We recommend editing the generic XLSX file using Microsoft Excel since using other editing software might break the file format such that the file cannot be uploaded. If you prefer to use the generic CSV file instead, then we recommend using an editor such as Notepad++ which does not break the formatting by adding extra quotes to the columns. It is NOT recommended to edit CSV files using Microsoft Excel.

Should you have any further questions, please contact support:

JOIN COINPANDA

See it for yourself

Sign up for free. Calculate your taxes in less than 15 minutes.