> ## 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 Bitunix Tax Report with KoinX

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

<Info>
  **API or File Upload**  ·  **5-10 min**  ·  Spot · Derivatives · 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="Derivatives and Positions" color="#0066CC" icon="chart-line">
    Derivatives positions and settlements.
  </Card>

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

  <Card title="Trading Fees and Rebates" color="#0066CC" icon="receipt">
    Fee records and trading rebates.
  </Card>
</CardGroup>

## Before you start

<CardGroup cols={2}>
  <Card title="Bitunix 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 Bitunix to KoinX

**API Key syncs automatically and needs no file management - recommended for most users.** Use File Upload if you want manual control over your transaction history.

<Tabs>
  <Tab title="API Key (Recommended)">
    ## Generate your Bitunix API key

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

      <Step title="Open API Management">
        Click the **profile icon** in the top right corner, select **API** from the menu, then click **API Management**.
      </Step>

      <Step title="Create a new API key">
        Click the **Create API** button.
      </Step>

      <Step title="Fill in the API details">
        Enter the following details:

        | Field       | Value                                  |
        | ----------- | -------------------------------------- |
        | Name        | `KoinX` (so you can identify it later) |
        | Purpose     | `Bind Third-Party App`                 |
        | Permissions | `Read Only` (keep the default)         |

        <Warning>
          Keep permissions set to **Read Only** only. Never enable trading or withdrawal permissions on an API key connected to a third-party service.
        </Warning>
      </Step>

      <Step title="Complete security verification">
        Complete the security verification using your linked authentication method and click **Submit**.
      </Step>

      <Step title="Copy your API Key and Secret Key">
        Your **API Key** and **Secret Key** will appear after submission. Copy both and store them securely. The Secret Key is shown only once.
      </Step>
    </Steps>

    ## Connect Bitunix 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 Bitunix and API Key">
        Search for **Bitunix** and select the **API Key** method.
      </Step>

      <Step title="Paste your keys and set start date">
        Paste your **API Key** and **Secret Key** into the respective fields. Optionally set a start date to specify from which point your transactions should be imported.
      </Step>

      <Step title="Import Now">
        Review your keys and click **Import Now**. Allow KoinX to fetch and import all your Bitunix transactions.
      </Step>
    </Steps>

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

    Once your Bitunix 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>
      * **Purpose must be set to Bind Third-Party App** - this is the correct purpose for connecting Bitunix to KoinX.
      * **Read Only is required** - keys with broader permissions may be rejected by KoinX as a security measure.
      * **Secret Key is shown once only** - copy it immediately at the time of creation and store it securely.
    </Note>
  </Tab>

  <Tab title="File Upload">
    ## Download your Bitunix transaction history

    <Steps>
      <Step title="Log in to Bitunix and open Tax Report">
        Go to [bitunix.com](https://www.bitunix.com) and sign in. Navigate to the **Tax Report** page.
      </Step>

      <Step title="Click Download Transactions">
        Click **Download Transactions**.
      </Step>

      <Step title="Select data type, format, and date range">
        Choose your **Data Type**, set the **File Format** to **CSV**, and select the **Date Range** covering your full trading history.

        <Warning>
          Select a date range that covers your entire trading history on Bitunix. If you have traded across multiple years, export each year separately and upload all files together in KoinX.
        </Warning>
      </Step>

      <Step title="Generate and download">
        Click **Generate**. Once the file status changes to **Generated**, click **Download** to save the file. Do not open it.
      </Step>
    </Steps>

    <Note>
      If you have traded for multiple years, repeat the export for each year and upload all CSV files together in one KoinX session.
    </Note>

    ## Upload to KoinX

    <Note>
      If you used the **File Upload** tab above, follow these steps to complete your import. API Key users can skip this - your sync is already done.
    </Note>

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

      <Step title="Select Bitunix and File Upload">
        Search for **Bitunix** and select the **File Upload** method.
      </Step>

      <Step title="Upload your file">
        Click **Upload** and select your downloaded Bitunix CSV file.
      </Step>

      <Step title="Submit">
        Click **Submit** and wait for KoinX to process and import your transactions.
      </Step>
    </Steps>

    <Check>
      **Done.** KoinX reads your transactions, classifies them, and prepares everything for gains calculation and report generation.
    </Check>

    Now that your Bitunix file is in, head to [Tax Reports](https://app.koinx.com/tax-report) on KoinX - your capital gains across trades, positions, and withdrawals are already calculated and your report is ready to download.

    <Warning>
      **Never open or edit your Bitunix CSV file before uploading.** This corrupts the file format. If you already did - re-generate a fresh file from Bitunix and upload that instead.
    </Warning>
  </Tab>
</Tabs>

***

## Frequently asked questions

<AccordionGroup>
  <Accordion title="Which method should I use - API Key or File Upload?">
    API Key is recommended for most users. It connects automatically, requires no file management, and syncs your full history when you set the start date correctly. Use File Upload if you want manual control over which date range is imported.
  </Accordion>

  <Accordion title="What permissions does the Bitunix API key need for KoinX?">
    Read Only permissions with the purpose set to Bind Third-Party App. This gives KoinX access to your full transaction history without the ability to place trades or move funds.
  </Accordion>

  <Accordion title="What date range should I select for the Bitunix CSV export?">
    Select a date range that covers your entire Bitunix trading history. If you have traded across multiple years, export each year as a separate file and upload all files together in one KoinX session.
  </Accordion>

  <Accordion title="Will Bitunix show my Secret Key again after I leave the page?">
    No. Bitunix displays the Secret Key only once after submission. 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 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 Bitunix data, select your country to generate the correct report.
  </Accordion>
</AccordionGroup>

***

## Troubleshooting

<AccordionGroup>
  <Accordion title="API key error on connection">
    Confirm Read Only permissions and Bind Third-Party App purpose are set in **Bitunix** -> **Profile** -> **API** -> **API Management**. Delete the credentials in KoinX and re-enter both values carefully - copy directly from Bitunix to avoid invisible characters.
  </Accordion>

  <Accordion title="CSV file won't upload to KoinX">
    Re-generate a fresh CSV from the Bitunix Tax Report page without opening it. Opening the file in Excel or Google Sheets reformats the structure and breaks the upload.
  </Accordion>

  <Accordion title="Transactions are missing after sync or upload">
    For API: ensure the start date in KoinX covers your first Bitunix trade. For File Upload: confirm the date range covers your full history and all years were exported and uploaded. Trigger a manual re-sync from **KoinX** -> **Integrations** -> **Bitunix**.
  </Accordion>

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

  <Accordion title="Large trading history is taking a long time to sync">
    Large trading histories may take extra time to fully sync. Allow the process to complete before reviewing your transactions. Avoid re-triggering the sync while it is still in progress.
  </Accordion>

  <Accordion title="KoinX is showing duplicate Bitunix transactions">
    Check **KoinX** -> **Integrations** for duplicate Bitunix connections and remove any extras. If both an API sync and a CSV upload were done for the same period, remove one and retain only a single connection method.
  </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="Binance - File Upload" icon="chart-bar" href="/integration/binance">
    Export Binance CSVs for Spot, P2P, Earn, and Options.
  </Card>

  <Card title="Bitget - API Upload" icon="key" href="/integration/bitget">
    Connect Bitget via Tax API Key or Normal API Key.
  </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 Bitunix 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 Bitunix transactions and generate a country-specific tax report in minutes.
</Card>
