Bitstamp in TaxChain
BetaTaxChain legge Bitstamp ed è testato sulle sue risposte documentate e registrate, ma non è ancora stato riconciliato con dati reali. Confronta le cifre con l'estratto di Bitstamp prima della dichiarazione.
Questa pagina è in inglese, per dire esattamente ciò che dicono la documentazione della piattaforma e il codice di TaxChain. I titoli e il resto del sito sono nella tua lingua.
Bitstamp is a European exchange, running since 2011, with spot markets and, for eligible clients, perpetual futures. TaxChain reads its transaction history CSV, in both the current (RFC 4180) and the legacy layout. An API import through CCXT exists in the code but is not offered: tests against Bitstamp's documented API show it would miss most of a history.
Modi di importare
Caricamento fileBeta
Bitstamp transaction history CSV (RFC 4180 or legacy layout)
The transaction history export from your Bitstamp account, with all currencies and all transaction types, over your whole history [1].
Both layouts are recognised by their header: the RFC 4180 one (ID, Account, Type, Subtype, Datetime, Amount, Amount currency, Value, Value currency, Rate, Rate currency, Fee, Fee currency, Order ID) and the legacy one, where each amount carries its currency in the same cell.
Row types read: Market (Buy and Sell), Deposit, Withdrawal, Ripple deposit, Ripple payment, Staking reward and Sub account transfer, the set other open-source parsers read [2].
Also read: Referral reward (as income received for nothing), Sent assets to staking and Credited with staked assets (as transfers of your own coins). These are the names Bitstamp's API reference gives those types [3]; the export is expected to use the same labels, as it does for the types above, but that has not been seen in a real file.
ETH2 (Bitstamp's staked ETH) and ETH2R (its staking rewards) are read as ETH, since each was redeemable 1:1 for ETH.
A row of any other type (a simple buy, a small-balance conversion, a derivatives settlement, an inter account transfer, or a label TaxChain does not know) is skipped and listed as a warning, and the import is marked partial. The export does not document which column holds each side of those rows, or their sign, so they are not guessed at.
Connessione APINon ancora disponibile
CCXT `bitstamp` (4.5.93)
Not offered. If it were: a read-only key with the Account balance and User transactions permissions (and Withdrawal requests, which the CCXT path also calls). A key is bound to one account, main or sub-account [3].
Bitstamp serves every kind of activity in one list, `user_transactions`, told apart by a type code. It returns the newest 100 rows unless asked otherwise, accepts a start time only within the last 30 days, and walks the full history with `sort=asc` and `since_id`, 1000 rows at a time [3]. rotki's client reads it that way [4].
CCXT never sends a start or a sort to that endpoint, so every call returns the same newest page. Tested against a stand-in that answers as Bitstamp documents, a full sync of 250 trades imports 100 and reports success [5].
CCXT reads withdrawals from `withdrawal-requests` and sends its time window in milliseconds where Bitstamp takes seconds (at most 50,000,000, about 579 days), which Bitstamp documents as refused (“Timedelta too large”), so a full sync would fail there. Those requests carry no fee either.
CCXT also loses the currency of any deposit or withdrawal under one coin, keeps a reversed withdrawal as settled, breaks on a trade row carrying the documented `self_trade` field, and leaves staking, referral, simple-buy, conversion and derivatives rows as bare type numbers that TaxChain cannot place.
CCXT has no sandbox for Bitstamp, so the API cannot be exercised on a sandbox stack either. Offering it needs a Bitstamp-specific reader of `user_transactions` (and `earn/transactions` for Earn), then a real account to check it against.
Cosa viene letto
| Operazione | Stato |
|---|---|
| Spot tradesBoth sides of every Market buy and sell, including crypto-quoted pairs such as ETH/BTC, at the price and value in the file. | Letto |
| Trading feesFrom the Fee column, in its own currency (normally the quote). | Letto |
| Deposits and withdrawalsFiat and crypto, including XRP's Ripple deposit and Ripple payment rows. A withdrawal is a disposal unless you mark it as a move to your own wallet. | Letto |
| Network fees on withdrawalsWhen the export states them in the Fee column. | Letto |
| Staking rewardsStaking reward rows, as income. Rewards named ETH2R, as older ETH staking rewards are, are read as ETH. | Letto |
| Staking deposits and returnsRows labelled Sent assets to staking or Credited with staked assets are read as transfers of your own coins, which realise nothing, and staked ETH2 as ETH. Those labels come from Bitstamp's API reference; a staking move under another label is skipped with a warning. | Letto in parte |
| Earn (lending and other Earn products)Bitstamp keeps these in a separate Earn history [3]; add the income by hand. | Non letto |
| Referral rewardsRows labelled Referral reward are read as income received for nothing given (with airdrops). The label comes from Bitstamp's API reference; a referral row under another label is skipped with a warning, and needs adding by hand. | Letto in parte |
| Simple buys and small-balance conversionsBitstamp lists these as their own types in the API; the export does not document which column holds each side, so such rows are skipped with a warning. A missing purchase stops the calculation for review. | Non letto |
| Sub-account transfersRead as transfers, which realise nothing. Export every sub-account you used. | Letto |
| Perpetuals: realised P&L and fundingBitstamp lists 20 perpetual markets today [6]; their settlements, funding, insurance and liquidations are not imported. | Non letto |
| MarginBitstamp's spot markets have no margin trading. | Non applicabile |
| Airdrops and forksNo row type maps to them; such a row is skipped with a warning. | Non letto |
| NFTs | Non applicabile |
Limiti
Only the CSV is offered. Connecting Bitstamp by API key is not available.
- Rows of types other than Market, Deposit, Withdrawal, Ripple deposit, Ripple payment, Staking reward, Sub account transfer, Referral reward, Sent assets to staking and Credited with staked assets are skipped. The import says how many and which; add them by hand.
- Simple buys, small-balance conversions, Earn income and perpetual futures results are not imported.
- Times are read as UTC, which is how Bitstamp writes them.
- ETH2 and ETH2R are read as ETH. A file uploaded before 21 November 2026 kept ETH2R staking rewards under that name, and uploading it again does not change rows already stored: delete that import and upload the file again.
- Each sub-account is its own history: export each one, or coins moved in from an unexported sub-account will have no cost basis.
- The adapter has not yet been checked against a real Bitstamp export, so check the figures against Bitstamp's own statement.
Come è stato verificato
- 21 novembre 2026Staking and referral rows through the CSV adapter: an ETH2R staking reward read as ETH income (both layouts), staked ETH2 as ETH, Sent assets to staking and Credited with staked assets as transfers, Referral reward as income received for nothing, and a simple buy and a derivatives settlement reported as warnings. Each fix was checked by putting the defect back and seeing its test fail. Built from BittyTax's parser and the API reference's type names, not a real export.
- 20 novembre 2026Both CSV layouts through the adapter, one row of every type it reads (fiat and crypto deposits, EUR and BTC-quoted trades with fees, staking reward, withdrawal with fee, Ripple rows, sub-account transfer) and an unknown type reported as a warning. Built from the documented layout, not a real export.
- 20 novembre 2026The CCXT API path, run through CCXT's own Bitstamp parser against a stand-in that pages and refuses as Bitstamp's API reference documents, with Bitstamp's real public market list. Eight defects found, each kept as an expected-fail test.
- 25 settembre 2026Legacy and RFC 4180 sample rows, and one trade from CCXT's recorded Bitstamp responses.
Cosa lo renderebbe Verificato
CSV: one real full-history Bitstamp export (RFC 4180, all currencies and types), run through the engine, with the resulting holdings matching the account's balances and every row type in it placed.
API: a Bitstamp-specific client paging `user_transactions` by `since_id`, checked against a real account's read-only key and the same account's CSV export.
Come aggiungerlo
- Sign in to Bitstamp and open the profile menu, then History (Transaction history).
- Choose Open export options.
- Set the date range to cover your whole history, and Currencies and Transaction types to All.
- Keep the CSV format at RFC 4180 (new) and choose Export selection [1].
- Repeat for each sub-account you used, then upload the files to TaxChain.
Riferimenti
- [1]Bitstamp file import guide. CoinLedger. Export steps, as of 2026.
- [2]BittyTax Bitstamp CSV parser. BittyTax.
- [3]Bitstamp HTTP API v2 reference (user_transactions, withdrawal-requests, earn/transactions). Bitstamp. Read 2026-11-20: type codes 0–61, paging limits, the 30-day start window and timedelta in seconds.
- [4]rotki Bitstamp exchange client. rotki. Pages user_transactions with since_id from 1, sort=asc, limit 1000.
- [5]CCXT bitstamp exchange class, version 4.5.93. CCXT.
- [6]Bitstamp public market list. Bitstamp. Called 2026-11-20: 272 markets, 252 spot and 20 perpetual.
Ultimo controllo sulla documentazione della piattaforma e sul codice di TaxChain il 21 novembre 2026.