Exchange · API · CSV

Phemex spot and futures, one tax report.

A view-only Phemex API key is all HashBooks needs: it reads your trades, deposits and withdrawals and keeps them in sync. Prefer files? Upload a statement instead.

  • PnL and funding
  • 8 country reports
  • Read-only
Connection receiptIllustrative
From
Phemex
To
HashBooks ledger
Method
Read-only API key
Access
View only. No trading, no withdrawals
Brings in
Spot and other trades the API returns, Closed futures and perpetual positions, with funding
Report
Form 8949 SA108 Schedule VDA myTax capital gains Schedule 3 Anlage SO Form CG1 IRAS income summary
Keys
AES-256-GCM, deleted on disconnect

Every row keeps its original record

At a glance

Phemex in brief.

Phemex at a glance
Listed jurisdictionChina
Marketsspot and perpetual swaps
How HashBooks connectsRead-only API key, or file
History it gives HashBookstrades, deposits and withdrawals
Websitephemex.com
API documentationphemex-docs.github.io
Fee schedulephemex.com

Jurisdiction, markets and links as listed in the open-source ccxt library (4.5.85), which HashBooks uses to connect to exchanges.

Taxed or not

What’s taxable on Phemex?

One row for each thing you can do on Phemex, for the country you picked.

What’s taxable on Phemex in United States
On PhemexTaxable in United States?How
Moving to your own walletNoMoving between your own wallets and accounts.
Buying cryptoNoBuying with dollars sets your cost basis.
Selling for cashYesCapital gain or loss; short- or long-term by holding period.
Swapping one coin for anotherYesA disposal of the coin you give up, at market value.
Rewards, staking and interestIncomeOrdinary income at fair market value when received.
Futures and perpetualsYesGain or loss when a position closes; funding adds to or reduces it.
What’s taxable on Phemex in United Kingdom
On PhemexTaxable in United Kingdom?How
Moving to your own walletNoMoving between your own wallets.
Buying cryptoNoBuying with pounds adds to your Section 104 pool.
Selling for cashYesCapital Gains Tax above the £3,000 annual exempt amount.
Swapping one coin for anotherYesA disposal at market value.
Rewards, staking and interestIncomeIncome at the pound value when received.
Futures and perpetualsDependsGains and losses on closed positions; treatment depends on the contract.
What’s taxable on Phemex in India
On PhemexTaxable in India?How
Moving to your own walletNoMoving between your own wallets and exchanges.
Buying cryptoNoBuying with rupees sets your cost of acquisition.
Selling for cashYes30% plus 4% cess on the gain; 1% TDS on Indian exchanges.
Swapping one coin for anotherYesA transfer of the coin you give up, taxed at 30% plus cess; TDS applies on both legs.
Rewards, staking and interestIncomeAt your slab rate when received.
Futures and perpetualsDependsReported in rupees; the treatment depends on the contract, so check with a CA.

Worked example

The numbers, worked through.

A Phemex position, taxed the way your country does it. The figures are illustrative; HashBooks works out yours from your own history.

A perpetual closed at a profit

Illustrative · United States

A perpetual closed at a profit, line by line
Realised profit on the position$1,200
Funding paid while it was open−$80
Net result$1,120
At a 22% ordinary rate if short-term$246.40

Rates depend on how the contract is treated; check yours with a tax professional. The full example in the help centre.

A perpetual closed at a profit

Illustrative · United Kingdom

A perpetual closed at a profit, line by line
Realised profit on the position£1,000
Funding paid while it was open−£60
Net result£940

HashBooks reports the figures in pounds; derivatives can be taxed differently from coins, so have an adviser check them. The full example in the help centre.

A perpetual closed at a profit

Illustrative · India

A perpetual closed at a profit, line by line
Realised profit on the position₹80,000
Funding paid while it was open−₹5,000
Net result₹75,000

Reported in rupees; how it’s taxed depends on the contract, so check with a CA. The full example in the help centre.

Your country

Phemex and your country’s rules.

These are the rules for the country you chose, applied to Phemex activity. Open any line for the full explanation in the help centre.

United States · Form 8949

  • Selling, swapping or spending what you hold on Phemex. Selling, swapping or spending crypto is a capital gain or loss: short-term at 10–37% if held a year or less, 0, 15 or 20% if held longer. More on Phemex in United States
  • Futures and perpetuals on Phemex. Closing a futures or perpetual position realises a gain or loss, and funding you pay or receive moves your result too. HashBooks records both in dollars on the day. More on Phemex in United States
  • Rewards and interest from Phemex. Staking rewards, interest and other rewards are ordinary income at their dollar value when received; that value becomes their cost basis. More on Phemex in United States
  • Moving coins to or from Phemex. Moving crypto between your own wallets and accounts isn’t taxable. More on Phemex in United States
  • Cost basis. Since 1 January 2025 cost basis is tracked per wallet or exchange; HashBooks uses FIFO, lot by lot. More on Phemex in United States

Full rules: the United States crypto tax guide in the help centre, or the United States overview.

United Kingdom · SA108

  • Selling, swapping or spending what you hold on Phemex. Selling, swapping or spending crypto is a disposal for Capital Gains Tax: gains above the £3,000 annual exempt amount are taxed at 18% or 24%. More on Phemex in United Kingdom
  • Futures and perpetuals on Phemex. Gains and losses on closed futures and perpetual positions, and funding payments, are reported in pounds. Derivatives can be taxed differently from spot coins, so have an adviser check the treatment. More on Phemex in United Kingdom
  • Rewards and interest from Phemex. Staking rewards are income at their pound value when received, and that value becomes their cost for a later disposal. More on Phemex in United Kingdom
  • Moving coins to or from Phemex. Moving crypto between your own wallets isn’t a disposal. More on Phemex in United Kingdom
  • Cost basis. Disposals match same-day buys, then buys in the next 30 days, then the Section 104 pool. More on Phemex in United Kingdom

Full rules: the United Kingdom crypto tax guide in the help centre, or the United Kingdom overview.

India · Schedule VDA

  • Selling, swapping or spending what you hold on Phemex. Each sale or swap is a transfer taxed at a flat 30% plus 4% cess on the gain. Losses can’t be set off, and only the cost of acquisition is deductible. More on Phemex in India
  • Futures and perpetuals on Phemex. Gains and losses on crypto futures and perpetuals are reported in rupees; how they are taxed depends on the contract and your facts, so check with a CA. More on Phemex in India
  • Rewards and interest from Phemex. Staking, airdrop and other rewards are income at your slab rate when received; selling them later is a separate 30% transfer. More on Phemex in India
  • Moving coins to or from Phemex. Moving crypto between your own wallets and exchanges isn’t a transfer. More on Phemex in India

Full rules: the India crypto tax guide in the help centre, or the India overview.

See the rules for your country.

How to connect

Connect Phemex in a few minutes.

Pick the method that suits you — both land in the same ledger. Stuck? See connecting accounts in the help centre.

  1. Sign in to Phemex and open its API management page.
  2. Create a new API key and enable read (view-only) permission only. Leave trading and withdrawals switched off.
  3. In HashBooks, choose Phemex under Integrations and paste the API key and secret.
  4. HashBooks syncs your full history and keeps it up to date.

What comes across

Your Phemex history, in one ledger.

  • Spot and other trades the API returns
  • Closed futures and perpetual positions, with funding
  • Deposits
  • Withdrawals
  • Fees

Good to know

Phemex specifics.

  • HashBooks prepares your report for the country where you file, not where Phemex is based, so gains on Phemex follow your own country’s rules.
  • Phemex offers spot and perpetual swaps. Closed positions and funding payments are imported alongside spot trades, so the report shows your whole result on the platform.

Security

A read-only Phemex key, and nothing more.

Even if the key were misused, a view-only Phemex key cannot trade or withdraw. It is encrypted at rest with AES-256-GCM and removed when you disconnect. How HashBooks keeps data safe.

Questions

Phemex, answered.

Does Phemex report my trades to the tax office?

Reporting depends on where Phemex is regulated and where you live, so don’t rely on it. Your return has to include every sale and swap across all your platforms, which is what HashBooks brings together.

How are Phemex futures and perpetuals taxed?

Closing a position realises a gain or loss, and funding you pay or receive adds to or reduces your result. HashBooks imports both from Phemex and reports them under your country’s rules; the tax section above shows how your country treats them.

Does HashBooks need trading permission on Phemex?

No. Create the Phemex key with read access only and leave trading and withdrawals off. HashBooks has no code that can trade or withdraw, and the key is encrypted with AES-256-GCM and deleted when you disconnect.

How do I get my Phemex transaction history for taxes?

Connect Phemex with a read-only API key and HashBooks pulls the history for you. You can also export a statement from Phemex and upload it with the HashBooks template.

Which HashBooks plan do I need for Phemex?

Connecting Phemex and seeing an estimated tax summary is free for up to 100 transactions across 3 connections. Filing reports for your country start on the Starter plan; see pricing.

Can HashBooks trade or withdraw on Phemex?

No. The key you create is view-only, and HashBooks contains no code that can trade, withdraw or transfer. It’s encrypted with AES-256-GCM and deleted the moment you remove Phemex.

Something else? Read all questions and answers, ask us or browse the help centre.

Ready?

Start with Phemex, add the rest later.

Free to start. Read-only from the first click.

Esc

Try “Schedule VDA”, “Kraken”, “Form 8949” or “accountants”.

Sample report