Skip to main content

Phemex: Transaction import via API

At a glance

👁️ Blockpit imports Phemex transactions automatically via an API key that you create at Phemex: deposits & withdrawals, fees, spot market trades and derivative trades PnL.

​

Import method: API

​

​

How do I get my Phemex API key?

1️⃣ Log in to your Phemex account.

​

2️⃣ Click on your profile icon in the upper-right corner to display the drop-down menu and select API Management.

​

3️⃣ Now click Create new API key.

​

4️⃣ Select Standard API Entry (api.phemex.com) and confirm with Next.

​

mceclip3.png

​

5️⃣ Enter any name for your API key and grant the API key permissions shown in the image below: Don't Bind and Read-Only.

​

mceclip4.png

​

6️⃣ Click Confirm and then enter the verification code that has been sent to you.

​

7️⃣ Your API key and API secret now appear in the API list and can only be copied for a short time.

​

8️⃣ Open + Integration (or, in the Dashboard under the Integrations tab, click + Integration).

​

9️⃣ Select Phemex from the list of exchanges (dialog Add Phemex) and then copy the API key and API secret into the designated fields. Confirm your entries by clicking Already recorded and saved to finish.

​

🔟 To complete the process, confirm your entries in Blockpit by clicking Continue.

​

💡 When using subaccounts, each subaccount must be imported into a separate Blockpit Integration. To do so, create a new Blockpit Integration using your subaccount's API key.

​

​

What happens after the import

After Continue, the integration appears in the Dashboard under the Integrations tab; you can find the individual transactions under Transactions.

​

You can fetch new transactions later with the integration's sync icon or with Sync all. If the Synced Balance differs from the calculated balance, Blockpit shows the Mismatched Balance hint.

​

​

​

Which data can be imported via Phemex API key?

​

Transactions

📆 Derivative/Futures transactions that are older than 90 days or exceed a maximum of 1,200 transactions are not available via API.

Supported

✅ Deposits & Withdrawals

✅ Fees

✅ Spot Market Trades

✅ Derivative Trades PnL (Profit, Loss, Fee and Funding)

✅ Converts

✅ Bonuses (Bounties)

​

Not Supported

⛔ Buys via Credit Card / OTC (Purchase/Trade can only be imported as Deposit due to an incomplete API on the exchange side - edit this transaction to "Trade" manually and add a "Deposit" for the outgoing asset)

⛔ Earn: Rewards & Distributions (Staking, Lending, Airdrops, Bounties, Hard Forks)

⛔ Transfers/Converts between Spot & Contract Account

​

​

Synced Balance

✅ Complete balance

​

​

How do I solve problems with my Phemex integration?

​

Is something still missing?

​

▸ Supported according to this guide: Create a second integration to compare. The older your integration, the more likely this helps.

▸ Not supported: There is no separate CSV import for this integration. Transfer the missing transactions into the Blockpit Excel template and upload it to your integration.

▸ Not mentioned here: Report it to us via chat request with an example. This lets us extend the import (if technically possible).

​

If you would rather have your account analysed, the Expert Service (Germany, Austria, Switzerland) helps.

​

Missing transactions can be found by comparing with the actual history of your exchange. You can add these afterwards as individual manual entries or by migrating your CSV data into our Blockpit Excel template in your Blockpit integration.

​

Does your Synced Balance not show a balance that is not listed as a mismatch above? Report it to us via chat request with an example. This lets us extend the import (if technically possible).

​

⚠️ Typical mistakes

​

✗ Secret not copied immediately → the secret is shown only once and can only be copied for a short time

✗ Expecting a subaccount to work with the main key → each subaccount needs its own Blockpit integration with its own subaccount API key

​

​

​

Did this answer your question?