How to import data via Bybit API key?

How do I get my Bybit API key?

  1. Log into your Bybit account.
  2. Hover over the user icon, in the upper-right corner, to display the drop-down menu and select "API".
  3. Then select "Create New Key" (System-generated API Keys).
  4. Select the "API Transaction" box and enter a unique name for your API Key.
  5. Do not use IP whitelisting.
  6. Grant the API key permissions "Orders", "Positions", "Trade", "Account Transfer", and "Subaccount Transfer" as shown in the image below and enable strictly the "Read-Only" option.



  7. Click on "Confirm" and enter your Google Authenticator password.
  8. To import your data, you must first create an Integration in the Blockpit Web App.
    To do so, click + Integration in the upper navigation.
  9. Select Bybit from the list of exchanges, and then copy the API key and the secret into the designated fields. Confirm your entries by clicking Create.

Your API key will have to be renewed every 3 months. You can edit the Integration and renew your API key there.

When using Bybit subaccounts, each subaccount must be imported into a separate Blockpit Integration. To do this, you must create a new Blockpit Integration using a special subaccount API key (Subaccount → API Management).

 

Which data can be imported via Bybit API?

Your complete transaction history always serves as the basis for your tax report. Preferably, automatic API solutions are used to import your transactions. Our team is committed to implementing all API data provided by your exchange for you.

Using the following list, you can identify products that have not yet been implemented and either add them to your Integration manually or via a CSV export:

Transactions:

Supported

icon-clock.svg Classic Account: Spot Market Trades older than 365 days are not available via API and have to be imported manually or via XLS template.
icon-clock.svg Unified V1 Account: Transfers, Spot Market Trades and Derivative PnL/Fee transactions older than 720 days (2 years) are not available via API and have to be imported manually or via XLS template.
icon-clock.svg Unified V2 Account: Not yet supported. Implementation panned for November 2024.

check.png Crypto Deposits & Withdrawals
check.png Fee Payments
check.png Refunds & Cashbacks
check.png Spot Market Trades
check.png Leverage Token Trades
check.png Derivative Trades PnL (Profit, Loss, Fee and Funding)

If transactions from your earning history are missing, you can help our support team via ticket to include them in our import spectrum.

Not Supported

x.png Fiat Deposits & Withdrawals
x.png Margin Trading
x.png Trading Bot
x.png Buy Crypto (Express, P2P)
x.png Margin Trading
x.png Conversions (Test cases for transactions post April 2024 required)
x.png Airdrops
x.png Flexible Savings
x.png Liquidity Mining
x.png Dual Assets
x.png Shark Fin
x.png Launchpool
x.png Copy Trading

Caution

Bybit does not provide data for delisted assets and trading pairs via API.

If an import of your transactions via API is not available on exchange side, you can also add these transactions manually or by migrating your CSV data into our Excel template.

  • You can find delisted assets under the following link in the menu item "Delistings".

    Search the transaction history of your exchange for delisted assets or trading pairs and make a comparison with all CSV files provided by your exchange.

    Then add the missing transactions to your Blockpit integration, either one by one or aggregated batch:



    Bybit-Derivatives-ClosedPNL.csv

  • More information in the following article:
    > How to import Derivative P&L transactions from futures or contract trading manually?

    Bybit Derivative PnL Migration.png

Synced Balance:

Supported

check.png Other Accounts

Not Supported

x.png Bybit Saving Account (only Funding Account Balance available)

Assets in the saving account are temporarily (until the saving process is exited) not fully displayed in the Synced Balance of your Blockpit integration. However, this has no effect on the tax report, as no internal outflows (transactions) occur in the integration. The resulting Tip: Mismatched Balance can be ignored in this context. The “Reconcile Balance” function should not be used in this exceptional case!

Please note the information about how the asset balance is calculated in this article.
If balances are displayed incorrectly, you can help our support team via Ticket to add them to our API import scope.

Here you will find instructions on how to create an API-Integration in Blockpit.

 

Will Bybit automatically deduct the tax for me?

Was this article helpful?