Binance dans TaxChain
BêtaTaxChain lit Binance et est testé sur ses réponses documentées et enregistrées, mais pas encore rapproché de données réelles. Comparez les chiffres au relevé de Binance avant de déclarer.
Cette page est en anglais, pour dire exactement ce que disent la documentation de la plateforme et le code de TaxChain. Les titres et le reste du site sont dans votre langue.
A centralised exchange with spot, margin, Earn, staking and futures products. TaxChain reads Binance's Transaction History statement, a CSV with one row per balance change, and rebuilds each trade from the rows written in the same second. An API connection through CCXT exists in the code but is not offered: it cannot yet read a full history of spot trades.
Modes d'import
Import de fichierBêta
Binance Transaction History statement (CSV)
The Transaction History statement, with the columns User_ID, UTC_Time, Account, Operation, Coin, Change and Remark (statements without User_ID are read too). Not the Spot Trade History export (Date(UTC), Pair, Side…), which TaxChain does not read.
Binance builds each statement on request and keeps the download link for 7 days; it limits how many you can generate each month, 15 to 40 depending on the account [1]. Cover your whole history, with Account and Coin set to All.
Rows of the same second and account are paired into one trade: the coin that went out against the coin that came in, with the fee row attached. A second whose rows cannot be paired is reported as an error on each row, never guessed.
Binance publishes no list of the operation names it writes. TaxChain reads every name in the most complete public list [2] except margin loans and repayments, each as that list's parser reads it (see Limitations). Any other name is reported as a warning, left out, and the import is shown as partial.
The statement's futures rows are read too: realised profit and loss, futures fees, funding paid and received, and insurance-fund rows, each with its sign.
Times are read as UTC, as the UTC_Time column states.
Connexion APIPas encore proposé
CCXT `binance` [3]
A read-only API key and its secret, the system-generated (HMAC) kind. Binance gives a key with no IP restriction the reading permission only [4].
Not offered. Binance returns spot trades one market at a time, and a time range may span at most 24 hours [5]. TaxChain asks each market once from 1 January 2017 and stops at the first empty day, so a full sync would read almost no trades, and an incremental one stops at the first day without a trade. Reading each market forward by trade id would read them all; Binance lists 3,751 spot markets (1,375 trading on 20 November 2026), so that is at least one request per market on every full sync.
It reads crypto deposits and withdrawals in 90-day windows [6] and converts in 30-day windows [7]. It does not read Earn and staking rewards, distributions and airdrops [8], dust conversions, card purchases, fiat deposits or margin: Binance has endpoints for each, but CCXT's ledger serves only the futures wallets [3], and TaxChain calls none of the others.
A deposit Binance rejected, flagged as a wrong deposit, or still waiting for your confirmation would be imported as received: only pending, failed and cancelled movements are left out, and Binance's codes for those three reach TaxChain unrecognised.
It cannot be checked on a sandbox: Binance's spot testnet has no wallet endpoints, so a sandbox sync stops at the first deposit request. Only a real account's read-only key can check it.
Adresse de portefeuilleNon disponible
None
An exchange account has no public address of its own to read. Your own wallets that send to or receive from Binance can be added as chain sources.
Ce qui est lu
| Opération | Statut |
|---|---|
| Spot tradesTransaction Buy, Spend, Sold, Revenue and Fee, and the older Buy, Sell and Fee rows, paired by second. A buy when euros, dollars, pounds or francs were given, a sell when they were received, otherwise a swap. Trades on a margin account are read the same way. | Lu |
| Trading feesA fee in the coin bought is taken off the quantity received; any other fee is stated in its own coin. A trade charged fees in two coins is reported as an error. | Lu |
| Converts and OTC tradesBinance Convert and Large OTC trading rows, each as a swap with both coins. | Lu |
| Dust conversion to BNBSmall Assets Exchange BNB rows, paired coin by coin in file order. BNB Fee Deduction rows are paired the same way, the coin given against the BNB received; one without its other half is reported as an error. | Lu |
| Card purchases (Buy Crypto With Card)Read as a buy when the statement shows both the money charged and the coin received in the same second. A row with only the coin received is reported as an error: add the purchase with what the card was charged. | Lu en partie |
| Deposits and withdrawalsCrypto deposits and withdrawals, Binance Pay sends (Send), and the Asset Recovery and Leveraged Coin Consolidation debits. A withdrawal's network fee is inside its amount, not stated on its own. Fiat deposits and withdrawals are left out: money moving on its own is not a crypto transaction. | Lu |
| Staking, Simple Earn and savings rewardsSimple Earn interest and locked rewards, Staking Rewards, ETH 2.0 Staking Rewards, Savings and POS savings interest and distributions, Launchpool interest and earnings, BNB Vault rewards, Pool Distribution, Liquid Swap and Swap Farming rewards, DOT Slot Auction rewards and Super BNB Mining, each as staking income. | Lu |
| ETH staking conversion (ETH to BETH)ETH 2.0 Staking rows, the ETH given and the BETH received, are paired into a swap. | Lu |
| Other conversionsStablecoins Auto-Conversion, Leverage Token Redemption, and Liquid Swap Sell with Swap Farming Transaction, each paired into a swap of the coin given for the coin received. A leg without its other half is reported as an error. | Lu |
| Airdrops and distributionsAirdrop Assets, every Launchpool Airdrop form, HODLer Airdrops Distribution, Simple Earn Flexible Airdrop, Megadrop rewards, cash vouchers, campaign rewards and Crypto Box gifts received are read as airdrops; a Crypto Box sent is a disposal. Asset - Transfer rows are read the same way, a credit as an airdrop and a debit as a withdrawal. A Distribution credit is read as an airdrop and a debit as a withdrawal, each flagged for review, since Binance uses Distribution for airdrops, rewards and token swaps alike. | Lu |
| Referral and rebate incomeCommission History, Commission Rebate, Commission Fee Shared With You, Referral Commission, Referrer and Referee rebates and Referral Kickback are read as airdrops: coins received for nothing given, as the futures API connection reads Binance's rebates. Statements uploaded before 21 November 2026 stored the first four as staking income. | Lu |
| Token swaps and rebrandingsToken Swap - Redenomination/Rebranding rows are paired into a swap of the old coin for the new. Token Swap - Distribution rows are read on their own, the coin received as an airdrop and the coin given as a withdrawal, each flagged for review: reclassify the pair as one swap. | Lu en partie |
| Futures rows in the statementRealised profit and loss, Fee rows on a futures account (the trading commission), funding paid and received, and insurance-fund charges and refunds, each a derivative result with the sign of its row, in the coin it was paid in. Futures Convert and Asset Conversion Transfer rows are paired into swaps. | Lu |
| Margin loans and interestMargin Loan and Repayment rows, isolated and cross, and Cross Margin Liquidation - Repayment, are left out with a warning. Margin interest is not read either. | Non lu |
| Binance Card and Binance PayCard spending paid in crypto is a disposal and card cashback an airdrop; card spending from a euro balance is left out, as fiat, and a refund under Card Spending is reported as an error. Binance Pay sends (Send) are withdrawals; a credit under Send is reported as an error. | Lu en partie |
| Crypto and flexible loans | Non lu |
| Options | Non lu |
| NFTs | Non lu |
| Moves between your Binance accountsSpot, Funding, Earn, mining and futures transfers, savings, staking and Simple Earn subscriptions and redemptions, Launchpad and Launchpool subscriptions, and Liquid Swap and Liquidity Farming additions and removals are read as transfers between your own accounts, which realise nothing. | Lu |
Limites
- Check the warnings and errors after each upload. An operation TaxChain does not read is listed with its row; so is a trade leg whose other half is not in the file. Add what applies to you with the TaxChain CSV template.
- A missing purchase stops the calculation at Needs review. Missing income does not stop it.
- A withdrawal is a disposal unless you mark it as going to a wallet of your own. Its network fee is inside the amount, as Binance writes it.
- Every Distribution and Token Swap - Distribution row is flagged. A credit is read as an airdrop and a debit as a withdrawal; where the two were one token swap or rebrand, reclassify them as one swap.
- Launchpad Subscribe and Liquid Swap Add are read as moves between your own accounts, as the public list's parser reads them. BNB a Launchpad spent on the new token stays in your holdings, and the token arrives as a Distribution airdrop; coins in a Liquid Swap pool stay in yours.
- Futures results are read from the statement with their sign: a profit or funding received adds to the year's derivative result, a loss, fee or funding paid takes from it. Opening or closing a position acquires no coin, so only its results are read.
- Fiat rows standing alone (fiat deposits and withdrawals, card spending from a euro balance) are left out without a warning. A card purchase or trade that spent euros keeps them as its other side.
- Statements uploaded before 21 November 2026 stored referral commissions and rebates, and Distribution credits, as staking income, and their euro deposits and withdrawals as rows of their own. Uploading the same file again does not change rows already stored: to have them read as described here, remove that file from the Binance source and upload it again.
- Uploading the same statement twice adds nothing: rows are identified by their content, and identical rows in the same second by their order in the file.
| Statement operations | What TaxChain reads them as |
|---|---|
| Transaction Buy, Spend, Sold, Revenue, Related and Fee; Buy, Sell and Fee; Binance Convert, Large OTC trading, Small Assets Exchange BNB | Spot trades, paired by second and account |
| Buy Crypto With Card, BNB Fee Deduction, ETH 2.0 Staking, Stablecoins Auto-Conversion, Leverage Token Redemption, Liquid Swap Sell with Swap Farming Transaction, Token Swap - Redenomination/Rebranding, Futures Convert, Asset Conversion Transfer | Trades, the two legs of each paired by second and account; a leg without its other half is an error |
| Deposit, Withdraw, Send, Asset Recovery, Leveraged Coin Consolidation, Binance Card Spending | Deposits and withdrawals (a withdrawal is a disposal) |
| Fiat Deposit, Fiat Withdraw, Fiat Withdrawal, and any row in euros or another currency | Left out: money moving on its own is not a crypto transaction |
| ETH 2.0 Staking Rewards, Staking Rewards, Savings Interest, POS savings interest, Simple Earn Flexible Interest, Simple Earn Locked Rewards, Launchpool Interest, Launchpool Earnings Withdrawal, BNB Vault Rewards, Savings distribution, Pool Distribution, Liquid Swap rewards, Swap Farming Rewards, DOT Slot Auction Rewards, Super BNB Mining | Staking and interest income |
| Airdrop Assets, Launchpool Airdrop (and its System and User Claim Distribution forms), HODLer Airdrops Distribution, Simple Earn Flexible Airdrop, Megadrop Rewards, Cash Voucher distribution, Campaign Related Reward, Commission History, Commission Rebate, Commission Fee Shared With You, Referral Commission, Referrer rebates, Referee rebates, Referral Kickback, Binance Card Cashback | Airdrops: coins received for nothing given |
| Distribution, Token Swap - Distribution, Crypto Box, Asset - Transfer | A credit as an airdrop, a debit as a withdrawal; Distribution and Token Swap rows flagged for review |
| Realized Profit and Loss, Realize profit and loss, Funding Fee, Insurance Fund Compensation, Insurance Fund Refund, and Fee on a futures account | Futures results, each signed: a credit adds to the result, a debit takes from it |
| transfer_in, transfer_out, the Transfer Between… rows, Simple Earn subscriptions and redemptions, Savings purchase and Principal redemption, POS savings and Staking purchases and redemptions, Launchpad Subscribe, Launchpool Subscription/Redemption, Liquid Swap Add, Liquid Swap Add/Sell, Liquidity Farming Remove | Moves between your own Binance accounts, which realise nothing |
| Margin Loan, Margin Repayment, Isolated Margin Loan, Isolated Margin Repayment, Cross Margin Liquidation - Repayment | Not read: listed as warnings, and the import shows as partial |
Comment cela a été vérifié
- 20 novembre 2026Every statement operation in the public list [2] run through the adapter. As found: 21 read as their type, 9 as transfers between your own accounts, 51 reported as unknown and none dropped silently; funding received and futures fees were errors.
- 21 novembre 2026The same list after the fix, each operation read as that parser reads it: income as staking income or an airdrop, outflows as withdrawals, futures rows as signed results, conversions paired into trades from both legs, moves between your accounts as transfers, fiat rows left out; only the five margin loan and repayment names reported as unknown. Each fix was checked by putting the defect back and seeing its test fail. The ids of rows imported before stay as they were.
- 21 novembre 2026Paired spot and margin trades, multi-coin dust conversion, two identical fills, ids stable across re-imports, funding both ways, and a euro deposit, purchase, sale and withdrawal that now leaves no euro rows behind.
- 20 novembre 2026The API path run behind the real CCXT 4.5.93 client against Binance's documented endpoints, with the public market table recorded from Binance on 20 November 2026: fills, deposits, withdrawals and converts are read correctly, but a full or incremental sync misses spot fills after the first 24-hour window, and rejected deposits are imported. Both are recorded failing tests.
Ce qui le rendrait Vérifié
A real Transaction History statement covering at least a full year, reconciled through the engine: every row placed or explained, and each coin's closing balance matching Binance's own balance at the end of the period. Only the account holder can supply it.
For the API: read spot trades by trade id per market and the deposit statuses Binance documents, then sync a real account with a read-only key and match the result to the same account's statement. No Binance sandbox can stand in for this.
Comment l'ajouter
- On binance.com, open Assets, then Asset History (Transaction History), and choose Export Transaction Records [1].
- Choose a custom range starting before your first deposit, with Account and Coin set to All, and generate the statement. Repeat for each period if one statement cannot cover your history.
- When Binance says it is ready, download it within 7 days.
- In TaxChain, open Wallets, choose Add source, pick Binance and upload each file.
- Read the warnings: add anything listed in Limitations that applies to you.
Références
- [1]How to Generate Transaction History. Binance (Binance Australia help centre). Assets > Asset History > Export Transaction Records; a limited number of statements per month (15 to 40); links expire after 7 days.
- [2]BittyTax Binance parser (conv/parsers/binance.py). BittyTax (open source). Binance publishes no list of statement operations; this parser's list is the most complete public one.
- [3]CCXT 4.5.93, binance.js (binance, binanceusdm, binancecoinm). CCXT. fetchLedger serves the futures and options wallets only; sandbox mode has no wallet (sapi) URLs and refuses the futures testnet; demo trading reaches the futures endpoints.
- [4]How to Create API Keys on Binance. Binance.
- [5]Account trade list (GET /api/v3/myTrades). Binance. Per symbol; at most 24 hours between startTime and endTime; fromId reads forward by trade id.
- [6]Deposit History and Withdraw History (/sapi/v1/capital/...). Binance. Windows under 90 days; up to 1000 rows; deposit and withdrawal status codes.
- [7]Get Convert Trade History (GET /sapi/v1/convert/tradeFlow). Binance. Start and end required, at most 30 days apart.
- [8]Asset Dividend Record (GET /sapi/v1/asset/assetDividend). Binance. Distributions and airdrops; at most 180 days between start and end, up to 500 rows.
Dernière vérification par rapport à la documentation de la plateforme et au code de TaxChain le 21 novembre 2026.