> ## Documentation Index
> Fetch the complete documentation index at: https://guides.koinx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Generate Your Phemex Tax Report with KoinX

> Connect your Phemex Exchange account to KoinX in a few steps to generate tax reports compliant with your local jurisdiction.

<Info>
  **API**  ·  **5-10 min**  ·  Spot · Futures · Deposits · Withdrawals  ·  **100+ countries**
</Info>

## What's covered

<CardGroup cols={2}>
  <Card title="Spot trades" color="#0066CC" icon="arrow-right-arrow-left">
    Buy, sell, and conversions.
  </Card>

  <Card title="Futures and Leverage" color="#0066CC" icon="chart-line">
    Futures positions with up to 100x leverage.
  </Card>

  <Card title="Deposits and Withdrawals" color="#0066CC" icon="building-columns">
    On-chain deposits and withdrawals.
  </Card>

  <Card title="Earn and Rewards" color="#0066CC" icon="piggy-bank">
    Interest-earning and staking rewards.
  </Card>
</CardGroup>

## Before you start

<CardGroup cols={2}>
  <Card title="Phemex account" icon="building-columns">
    Active account with transaction history, accessed via web browser.
  </Card>

  <Card title="KoinX account" icon="sparkles" href="https://app.koinx.com/get-started">
    Free account - no credit card needed.
  </Card>
</CardGroup>

***

## Connect Phemex to KoinX

**API Key syncs your full Phemex transaction history automatically - no file exports needed.**

<Tabs>
  <Tab title="API Key">
    ## Generate your Phemex API key

    <Steps>
      <Step title="Log in to Phemex">
        Go to [phemex.com](https://www.phemex.com) and sign in to your account.
      </Step>

      <Step title="Open API Management">
        Click on the **profile icon** in the top right corner and select **API Management**.
      </Step>

      <Step title="Create a new API key">
        Click **Create New API Key** and select the **Default API** entry.
      </Step>

      <Step title="Set permissions and IP settings">
        Set permissions to **Read Only** and set IP address binding to **Don't Bind**.

        <Warning>
          Set IP binding to **Don't Bind** and permissions to **Read Only**. IP restrictions will block KoinX servers from connecting. Never enable trading or withdrawal permissions on a third-party API key.
        </Warning>
      </Step>

      <Step title="Generate and copy your API key">
        Click **Generate Key**. Copy both your **API Key** and **Secret Key** and store them securely. The Secret Key is shown only once.
      </Step>
    </Steps>

    ## Connect Phemex to KoinX

    <Steps>
      <Step title="Open KoinX Integrations">
        Log in to [app.koinx.com](https://app.koinx.com) -> **Integrations** -> **Add Integration**.
      </Step>

      <Step title="Select Phemex">
        Search for **Phemex** and select it.
      </Step>

      <Step title="Paste your keys and import">
        Paste your **API Key** and **Secret Key** into the respective fields and click **Import Now**.
      </Step>
    </Steps>

    <Check>
      **Done.** KoinX begins syncing your Phemex history. Large accounts may take a few minutes.
    </Check>

    Once your Phemex data is in, head over to [Tax Reports](https://app.koinx.com/tax-report) on KoinX - your capital gains, income breakdown, and country-specific crypto tax report are ready for you there.

    ## API key notes

    <Note>
      * **Set IP binding to Don't Bind** - any IP restriction will prevent KoinX from connecting.
      * **Secret Key is shown once only** - copy it immediately at the time of creation and store it securely.
      * **Read Only is required** - keys with broader permissions may be rejected by KoinX as a security measure.
    </Note>
  </Tab>
</Tabs>

***

## Frequently asked questions

<AccordionGroup>
  <Accordion title="What permissions does the Phemex API key need for KoinX?">
    Read Only permissions with IP binding set to Don't Bind. This gives KoinX access to your transaction history without the ability to place trades or move funds. IP restrictions block KoinX servers and must be disabled.
  </Accordion>

  <Accordion title="Will Phemex show my Secret Key again after I leave the page?">
    No. Phemex displays the Secret Key only once at the time of creation. Copy it immediately and store it securely. If lost, delete the key from API Management and generate a new one.
  </Accordion>

  <Accordion title="Does KoinX support Phemex futures and leverage trading for tax?">
    Yes. KoinX imports your full Phemex transaction history via API, including futures positions and leveraged trades, and classifies each correctly for your tax report.
  </Accordion>

  <Accordion title="Does Phemex provide tax reports directly?">
    No. Phemex does not provide tax-ready reports. By connecting your Phemex account to KoinX via API key, your full transaction history is imported automatically and a compliant tax report is generated within minutes.
  </Accordion>

  <Accordion title="Does KoinX support my country's crypto tax rules?">
    Yes. KoinX supports 100+ countries with dedicated report formats for India, the US, UK, Australia, Canada, Germany, and more. After importing your Phemex data, select your country to generate the correct report.
  </Accordion>
</AccordionGroup>

***

## Troubleshooting

<AccordionGroup>
  <Accordion title="API key error on connection">
    Confirm the key was generated with Read Only permissions and IP binding set to Don't Bind in **Phemex** -> **API Management**. Delete the credentials in KoinX and re-enter both values carefully - copy directly from Phemex to avoid invisible characters.
  </Accordion>

  <Accordion title="KoinX shows a connection error immediately on sync">
    IP binding is likely set to a specific address during key creation. Go to **Phemex** -> **API Management**, delete the existing key, generate a new one with IP binding set to **Don't Bind**, and reconnect in KoinX.
  </Accordion>

  <Accordion title="Transactions are missing after sync">
    Trigger a manual re-sync from **KoinX** -> **Integrations** -> **Phemex**. If records are still missing, disconnect the integration, generate a fresh API key from Phemex, and reconnect in KoinX.
  </Accordion>

  <Accordion title="API sync keeps failing">
    Check the Phemex platform for ongoing maintenance. If the platform is operational, verify the key is still active under **API Management**. Regenerate if expired, re-enter credentials in KoinX, and trigger a fresh sync.
  </Accordion>

  <Accordion title="API connection worked before but stopped syncing">
    Phemex API keys can become inactive following account security changes. Log in to Phemex, check the key status under **API Management**, and regenerate if inactive. Update the new credentials in KoinX under **Integrations** -> **Phemex** -> **Edit**.
  </Accordion>

  <Accordion title="KoinX is showing duplicate Phemex transactions">
    Check **KoinX** -> **Integrations** for duplicate Phemex connections and remove any extras. If a file was previously uploaded for the same period, delete those transactions before re-syncing via API.
  </Accordion>
</AccordionGroup>

***

## Related integrations

<CardGroup cols={2}>
  <Card title="Bybit Integration" icon="bolt" href="/integration/bybit">
    Connect Bybit via API key or file upload.
  </Card>

  <Card title="Bitget - API Upload" icon="key" href="/integration/bitget">
    Connect Bitget via Tax API Key or Normal API Key.
  </Card>

  <Card title="Binance - File Upload" icon="chart-bar" href="/integration/binance">
    Export Binance CSVs for Spot, P2P, Earn, and Options.
  </Card>

  <Card title="OKX Integration" icon="chart-line" href="/integration/okx">
    Sync OKX trades and earn history via API or CSV.
  </Card>
</CardGroup>

<Card title="Ready to generate your Phemex crypto tax report?" color="#6366f1" icon="rocket" href="https://app.koinx.com/get-started">
  Create a free KoinX account - no credit card required. Import your Phemex transactions and generate a country-specific tax report in minutes.
</Card>
