Bybit en TaxChain
BetaTaxChain lee Bybit y está probado con sus respuestas documentadas y grabadas, pero aún no se ha conciliado con datos reales. Compara las cifras con el extracto de Bybit antes de presentar la declaración.
Esta página está en inglés para decir exactamente lo que dicen la documentación de la plataforma y el código de TaxChain. Los títulos y el resto del sitio están en tu idioma.
Bybit is a global exchange for spot, perpetuals, options and Earn products. TaxChain reads its spot trade CSV, and nothing else from it: deposits, withdrawals, converts, Earn and derivatives must be added another way. A connection through CCXT is wired but not offered, and on Bybit global it would not read spot trades at all.
Formas de importar
Subida de archivoBeta
Bybit spot trade history CSV
A spot trade history file with these columns: Symbol, Order ID, Side, Order Type, Avg. Filled Price, Filled Qty, Exec Fee and Exec Time. Total, Trade ID (or Exec ID) and Fee Currency are read when present. A time zone in the Exec Time header, such as Exec Time(UTC+8), is converted to UTC; without one the times are read as UTC.
These column names come from TaxChain's own sample. They have not been checked against a real Bybit file, and Bybit does not publish its export columns. If your file's header differs, it will not be recognised.
The symbol is split by its quote coin (USDT, USDC, FDUSD, USDE, USD1, RLUSD, XUSD, USD, BTC, ETH, SOL, DAI, BUSD, EUR, PLN, AED, BRL, TRY), which covers every quote on Bybit's and Bybit EU's own spot market lists; none is split wrongly [1].
Some money cannot be valued yet, so those rows are refused by name rather than imported wrongly. A trade quoted in UAE dirham (AED, 4 Bybit markets) or Turkish lira (TRY) is refused, since TaxChain would hold the currency as if it were a coin. A trade whose fee is in Polish zloty (PLN) or Brazilian real (BRL), as a sale on those markets is charged, since Bybit takes the fee in the coin received, is refused too; purchases there are read. Add refused rows by hand.
Bybit's Orders page exports up to 6 months per file, 10,000 rows, from the last 2 years. The Data Export page gives 12 months per file, from 2022; older history needs Bybit support [2] [3].
Bybit's other files (the transaction log, closed P&L, Earn and funding records) are not read. The transaction log is where deposits, withdrawals, funding and fees are; reading it is the realistic next step.
Conexión por APIAún no disponible
CCXT `bybit`
A system-generated API key and secret, set to Read-Only. No passphrase. TaxChain never needs trading, transfer or withdrawal rights.
On Bybit global, CCXT asks for linear perpetual fills when no market is named, which is how TaxChain asks [4]. Spot fills are never requested: a spot-only account syncs with no trades, and an account with a perpetual fill fails the sync, since TaxChain does not import derivative fills as trades.
Not offered: like every CCXT venue, it is enabled only on a sandbox stack until a sandbox sync reads a seeded history in full. The tests below show it would not today.
Paging: Bybit answers one window per query. Trade history covers 7 days from the start time and keeps 2 years [5]; the transaction log covers 24 hours from the start time when no end is given, at most 7 days [6]; deposits and withdrawals cover under 30 days [7] [8]. TaxChain's paginator has no Bybit window: a full sync starts on 1 January 2017, gets an empty first window and stops, reporting success with nothing read. An incremental sync stops at the first week without a fill.
Converts: Bybit's convert history takes no dates and pages by number [9]. CCXT sends no page number, so TaxChain reads the first 100 converts at most.
Deposits and withdrawals: CCXT asks for on-chain withdrawals only (Bybit's default), so a transfer to another Bybit user by UID is not read, and internal deposits sit on an endpoint CCXT does not call [8]. A withdrawal Bybit rejected, a failed deposit and a deposit Bybit rolled back would be imported as if they had happened [10].
Ledger: the Unified Trading Account's transaction log is read, but CCXT renames Bybit's types first [4]. Funding, delivery, liquidation and the profit or loss on closing a position all arrive as "trade" and are skipped; borrow interest arrives as "transaction" and is skipped; a bonus is not placed. Principal coming back from Earn, On-chain Earn or liquidity mining (the REDEMPTION and REFUND types) is booked as staking income, which overstates income [10].
Bybit also has a tax report API that returns spot trades, converts, Earn, deposits and withdrawals, bonuses and airdrops, 12 months per request, with an API key that has the Exchange History permission [11]. TaxChain does not use it. It would cover most of what the CCXT route misses.
Qué se lee
| Operación | Estado |
|---|---|
| Spot tradesFrom the CSV, with both sides, on every market Bybit lists. Trades quoted in AED or TRY, and sales on PLN or BRL markets (the fee is in that currency), are refused and listed. The API would not read spot trades on Bybit global. | Se lee en parte |
| Trading feesFrom Exec Fee. Its coin is the file's Fee Currency, or the coin named in the cell; otherwise the coin received (base on a buy, quote on a sell), as Bybit charges spot fees. A negative fee is a maker rebate: left out, with a warning. | Se lee |
| Deposits and withdrawalsThe trade file has none. The API connection that would read it is not offered. | No se lee |
| Withdrawal network feesCome with withdrawals, which are not read. | No se lee |
| ConvertsNot in the trade file. The API connection that would read it is not offered. | No se lee |
| Earn, savings and staking rewardsAdd rewards as income yourself, or the income is missing from your report. | No se lee |
| Perpetuals and futures: realised P&L and fundingNot in the trade file, and the ledger mapping skips them. The closed P&L and transaction log exports have them. | No se lee |
| Spot margin: borrowing and interest | No se lee |
| Options | No se lee |
| Airdrops, bonuses, Launchpool and fee refunds | No se lee |
| Bybit Card spendingEach card payment in crypto is a disposal. Bybit's tax report API lists card transactions [11]. | No se lee |
| Copy trading and trading botsOther tools report that bot trades are missing from some Bybit files [12]. | No se lee |
| P2P and fiat depositsBuying crypto on P2P is a purchase: without it, a later sale has no cost and stops at Needs review. | No se lee |
Limitaciones
- Only spot trades are read. Add deposits, withdrawals, converts, rewards and derivative results another way, for example with the TaxChain CSV template.
- A missing purchase stops the calculation at Needs review; missing income does not. Earn rewards, bonuses and airdrops will not be in your report unless you add them.
- The file format has not been checked against a real Bybit export.
- Trades quoted in AED or TRY, and trades whose fee is in PLN or BRL, are refused: TaxChain cannot value those currencies yet. Add them by hand.
- The API connection is not offered. When it is, it will need the paging fixed first: today a full sync reads nothing and says it succeeded.
- Bybit keeps 2 years of trade history and transaction log on its API [5] [6], and Earn yield for about 3 months [13]. Older history must come from a file export.
Cómo se ha comprobado
- 20 de noviembre de 2026Synthetic CSV rows: both sides of a buy and a sell, fee coins, partial fills kept apart and stable on re-import, maker rebates, a marked time zone, an unknown quote refused.
- 20 de noviembre de 2026The CSV symbol split against every spot market Bybit and Bybit EU list (506 and 129, recorded from the public API): none split wrongly, 19 refused. Repeatable live with LIVE_SOURCES=1.
- 21 de noviembre de 2026Fix: the CSV now knows every quote coin Bybit lists (USD, USD1, RLUSD, XUSD, PLN, AED and SOL added). Against the recorded market lists (and the live list, 507 markets, on the day), every market is split as Bybit lists it and read, except the 4 AED markets, which are refused by name. Trades quoted in AED or TRY, and fees in PLN or BRL, are refused by name, since TaxChain cannot value that money.
- 20 de noviembre de 2026The real CCXT bybit client, run against a stand-in that answers as Bybit's V5 documentation says (windows, page sizes, defaults), with the documented example rows: an incremental sync inside one window reads spot fills with both sides and their fees, and on-chain withdrawals with their fee. Full syncs, converts past the first page, off-chain withdrawals and rejected or rolled-back movements fail, each with its own test.
- 20 de noviembre de 2026Every transaction-log type Bybit documents, through CCXT's parser and TaxChain's ledger mapping: 18 placed as their description says, 15 not (funding, delivery, liquidation, ADL, close P&L, bonus, borrow interest, convert legs, and six Earn principal returns booked as income).
- 20 de noviembre de 2026CCXT's own recorded Bybit responses through the normalizers: spot fills read; the recorded funding SETTLEMENT row is skipped.
- 20 de noviembre de 2026Bybit's public API host and its testnet (api.bybit.com, api-testnet.bybit.com) answered a keyless time request.
- 20 de noviembre de 2026No real Bybit account or export has been reconciled through the engine.
Qué lo haría Verificado
- Confirm the CSV columns against a real spot trade history export.
- Value AED, TRY, PLN and BRL as money, so the rows refused for them can be read.
- Read the transaction log export, or the tax report API, so deposits, withdrawals, converts, Earn and funding come in.
- Reconcile a real Bybit account's export, the owner's or a consented beta user's, through the engine against Bybit's own balances.
- For the API: ask for spot fills, walk Bybit's windows from 2 years back, page converts by number, accept only settled statuses, and map the transaction-log types by Bybit's own names; then sync the testnet and a real read-only key.
Cómo añadirlo
- Sign in to Bybit on the web. Open Orders, then Spot Order (Unified Trading Order on a Unified Trading Account), and choose Trade History, not Order History [2].
- Choose a date range of up to 6 months and export. Repeat until you cover your whole history, or use Data Export for 12 months per file.
- Do not open and re-save the file in a spreadsheet, which can change dates and numbers.
- In TaxChain, open Wallets, choose Add source, pick Bybit and upload the files. Rows not understood are listed with the reason.
Referencias
- [1]Get Instruments Info (GET /v5/market/instruments-info). Bybit. Public. Recorded on 2026-11-20: 506 spot markets on api.bybit.com; 129 on api.bybit.eu (quotes EUR, PLN, USDC) and no linear contracts.
- [2]How to Self-Export My Account Data. Bybit Help Center. The page did not load for automated reading on 2026-11-20; the limits (6 months and 10,000 rows per spot export, last 2 years) are from the search index of its bybit.nl copy.
- [3]Bybit integration guide. KoinX. Data Export: Transaction Log and Order History, 12 months per export; data before 2022 only through Bybit support.
- [4]CCXT 4.5.93: bybit and bybiteu. CCXT. parseLedgerEntryType maps SETTLEMENT, DELIVERY, LIQUIDATION and TRADE to trade, INTEREST to transaction, BONUS to Prize; fetchMyTrades defaults to category linear on bybit, spot on bybiteu; fetchConvertTradeHistory sends no index.
- [5]Get Trade History (GET /v5/execution/list). Bybit. category required; at most 7 days per query, 7 days from startTime when only it is given; 2 years kept; limit up to 100; fee coin in feeCurrency.
- [6]Get Transaction Log (GET /v5/account/transaction-log). Bybit. Unified Trading Account only; 24 hours from startTime when only it is given, at most 7 days; 2 years kept; change = cashFlow + funding - fee.
- [7]Get Deposit Records (on-chain). Bybit. Range under 30 days, last 30 days by default; internal deposits have their own endpoint.
- [8]Get Withdrawal Records. Bybit. withdrawType 0 (on chain, default), 1 (off chain), 2 (all); range under 30 days.
- [9]Get Convert history. Bybit. No time parameters; page index from 1, up to 100 a page; converts made on the web are listed from 10 September 2025.
- [10]Enums Definitions: transaction log types, deposit and withdrawal statuses. Bybit. Deposit status 4 failed, 7 and 7001x rollback; withdrawal Reject, Fail, CancelByUser.
- [11]Batch Request Export Reports (tax API). Bybit. Report types per site (bybit, eu); 12 months per request; Exchange History permission; 5 requests a second.
- [12]ByBit CSV: Bot trades files are not supported. Koinly feedback board.
- [13]Get Yield History (GET /v5/earn/yield). Bybit. Flexible Saving and On-chain; about 3 months of history.
Última comprobación con la documentación de la plataforma y el código de TaxChain el 20 de noviembre de 2026.