Overview
What this connector brings into Ledger
Bitstamp is a digital-asset exchange for individuals and institutions. One Bitstamp account holds fiat currency and digital assets together: customers fund it by bank transfer or on-chain deposit, trade spot markets, convert between currencies and stablecoins, withdraw to a bank or a wallet, and can commit assets to Bitstamp Earn. An account can also have sub-accounts, each with its own balances.
The connector books that activity into Formance Ledger. It follows each deposit and withdrawal from the moment Bitstamp reports it until it settles or fails, books every settled trade and conversion with its fee, and brings sub-accounts and Earn into the same ledger as the main account. The first connection reads the account back to its first transaction. The connector also records the balances Bitstamp reports beside the booked position, so the two can be compared.
The connector only reads. It never places an order, initiates a withdrawal, or moves funds on Bitstamp. Derivatives are not yet covered.
Provider resources
Provider documentation
Use cases
What you can model
Track deposits and withdrawals until they settle
A digital-asset deposit reaches the balance only when Bitstamp reports it final, and a withdrawal's funds are set aside from the moment it opens. Reverted, rejected, canceled, and failed items stay on the record with Bitstamp's own status. Treasury can query what is still in flight, item by item, at any point in the month.
Keep the account's whole history in the ledger
Bitstamp's API filters reach back 30 days. The first connection reads the account from its first transaction instead, including trades, conversions, deposits, and withdrawals. The ledger then holds the account's record even for activity Bitstamp's filters no longer return.
Compare Bitstamp's balances with booked activity
The connector records the balances Bitstamp reports for each asset (available, total, and reserved, plus Earn amounts) next to the position the ledger builds from booked activity. It adjusts neither figure, so a difference shows up per asset and can be investigated.
See what trading and withdrawals cost
Each trading fee is booked as its own movement, so the cost of a fill does not disappear into its executed price. A fee Bitstamp charges on a withdrawal is booked next to the withdrawal. Fees can be traced fill by fill and withdrawal by withdrawal.
Report Earn rewards apart from principal
With Earn enabled, a subscription moves the committed assets to their own Earn position and an unsubscription moves them back. Rewards land in a separate account, so yield can be reported without separating it from principal by hand.
Bring sub-accounts into the same ledger
Each sub-account named in the configuration is read alongside the main account and keeps its own balances. A transfer to or from a sub-account is booked on the sub-account as money leaving or arriving, so each sub-account's position includes it.
Coverage
Supported and out of scope
Read both lists before you rely on this connector for a provider product or lifecycle state.
- Digital-asset deposits, held apart while pending and credited once final, with the chain transaction, network, and address recorded; reverted and rejected deposits keep their status
- Fiat bank deposits, credited to the fiat balance when Bitstamp records them as settled
- Fiat and digital-asset withdrawals, set aside from the moment they open; a canceled or failed withdrawal returns its funds, and a withdrawal fee is booked as its own movement
- Settled spot trades in both directions, including instant buys and sells and conversions between fiat and stablecoins, each with its trading fee booked as its own movement
- Sub-accounts named in the configuration, read into the same ledger as the main account with their own balances, including transfers to and from each sub-account
- Bitstamp Earn, when enabled: committed assets move to their own position and back, and rewards land in a separate account
- The balances Bitstamp reports for each asset (available, total, and reserved, plus Earn amounts), recorded next to the booked position; the connector adjusts neither side
- History from the account's first transaction, further back than the 30 days Bitstamp's API filters reach, with each movement booked once
- Amounts booked to at least eight decimal places, so trade and fee amounts finer than Bitstamp's two-decimal fiat display are kept
- An optional live feed that brings settled trades in sooner; completeness never depends on catching a live message
- Moving money. The connector never places an order, initiates a withdrawal or transfer, closes a position, or changes an Earn subscription on Bitstamp
- Derivatives. Perpetual positions, their settlements, and margin are not yet covered
- Open orders. An order appears once its fills settle, and funds held by an open order show only in the reserved balance Bitstamp reports
- The main account's side of a sub-account transfer. Bitstamp does not show these transfers in the main account's history, so they appear on the sub-account only
- Sub-accounts the configuration does not name. Bitstamp offers no way to list them, so each one is added by hand
- Legacy staking and referral rewards, and transfers that carry a fee. When one appears, updates for that account pause until it is supported, instead of booking a guess
- Instant updates for deposits, withdrawals, and balances. Bitstamp has no live feed for them, so they appear with a short delay
- Deposit and withdrawal history beyond 200,000 records of each kind, which Bitstamp's API does not return; older records need an export from Bitstamp
- Status signals that move no money. Deposit review and Travel Rule status, liquidation alerts, and address registrations are not recorded
- Market data. Tickers, order books, and price history stay out of scope
Ledger model
How observations are represented
The connector preserves the provider's meaning when it records supported observations in Ledger. Depending on its scope, those records may represent financial movements, measured quantities, or lifecycle evidence. An observation does not necessarily change a financial balance.
Ledger model
Accounts, transactions, and reporting views
How this connector represents provider activity in Ledger: the accounts it maintains, the transactions it records, and the prepared queries that read them back.
These accounts organize the activity this connector records. Parts of an address in braces are replaced with provider identifiers.
Venue counterparty (bare leaf); deposits source from it, withdrawals and fees sink to it.
bitstamp:{conn_id}Account details
Persistence: Normal
Segments: conn_id matches [a-zA-Z0-9_-]+
Fiat and stablecoin balance (USD, EUR, USDC, ...); funds trades and receives sells.
bitstamp:{conn_id}:fiat:mainAccount details
Persistence: Normal
Segments: conn_id matches [a-zA-Z0-9_-]+
Crypto balance (BTC, SOL, ETH, ...).
bitstamp:{conn_id}:crypto:mainAccount details
Persistence: Normal
Segments: conn_id matches [a-zA-Z0-9_-]+
Derivatives collateral / margin balance.
bitstamp:{conn_id}:margin:mainAccount details
Persistence: Normal
Segments: conn_id matches [a-zA-Z0-9_-]+
Realized derivatives PnL counterpart.
bitstamp:{conn_id}:pnl:mainAccount details
Persistence: Normal
Segments: conn_id matches [a-zA-Z0-9_-]+
Earn (lending / staking) subscription principal.
bitstamp:{conn_id}:earn:mainAccount details
Persistence: Normal
Segments: conn_id matches [a-zA-Z0-9_-]+
Earn / lending rewards received (kept separate from principal).
bitstamp:{conn_id}:earn:main:rewardAccount details
Persistence: Normal
Segments: conn_id matches [a-zA-Z0-9_-]+
In-flight crypto deposit register; drains to balance on FINALIZED.
bitstamp:{conn_id}:deposit:hold:processing:{tx_id}Account details
Persistence: Ephemeral
Segments: conn_id matches [a-zA-Z0-9_-]+, tx_id matches [a-zA-Z0-9_-]+
In-flight withdrawal register; drains to the venue on finished.
bitstamp:{conn_id}:withdrawal:hold:processing:{tx_id}Account details
Persistence: Ephemeral
Segments: conn_id matches [a-zA-Z0-9_-]+, tx_id matches [a-zA-Z0-9_-]+
Open derivatives position marker.
bitstamp:{conn_id}:position:hold:open:{position_id}Account details
Persistence: Ephemeral
Segments: conn_id matches [a-zA-Z0-9_-]+, position_id matches [a-zA-Z0-9_-]+
Last-resort source and residue.
bitstamp:{conn_id}:suspense:mainAccount details
Persistence: Normal
Segments: conn_id matches [a-zA-Z0-9_-]+
Current native report facts; metadata only.
bitstamp:{conn_id}:spot_reportAccount details
Persistence: Normal
Segments: conn_id matches [a-zA-Z0-9_-]+
Current native report facts; metadata only.
bitstamp:{conn_id}:margin_reportAccount details
Persistence: Normal
Segments: conn_id matches [a-zA-Z0-9_-]+
Current native report facts; metadata only.
bitstamp:{conn_id}:earn_reportAccount details
Persistence: Normal
Segments: conn_id matches [a-zA-Z0-9_-]+
Earn program counterparty (reward source).
external:earn:mainAccount details
Persistence: Normal
Snapshot vs ledger-derived drift.
reconciliation:variance:bitstamp:{conn_id}:mainAccount details
Persistence: Normal
Segments: conn_id matches [a-zA-Z0-9_-]+
Each entry describes how a supported provider observation is recorded in Ledger. Expand it to inspect the technical mapping.
Crypto deposit entered a non-terminal state; open its hold from the venue.DepositOpens a transitional balanceTechnical mapping
Selected when
The connector evaluates these conditions against each observed provider record.
- Status is one of PENDING or IN PROCESSING
Ledger record
The stored name and reference keep repeated observations idempotent.
- Stored template
bitstamp.DEPOSIT_HOLD- Ledger effect
- Opens a transitional balance
- Reference pattern
dep:{conn_id}:{id}:hold- Effective time
- Timestamp
Inputs passed to the template
Each input comes from the selected provider record or a value derived from it.
$assetDerived from Asset symbol and Precisionumn(asset_symbol, precision)$amountDerived from Amount and Precisionunits(amount, precision)$conn_idFrom Conn IDconn_id$tx_idDerived from IDstr(id)$statusFrom Statusstatus$txidDerived from Txidstr(default(txid, ""))$networkDerived from Networkstr(default(network, ""))$addressDerived from Destination addressstr(default(destination_address, ""))View the exact selection expression
kind == "deposit" && status in ["PENDING", "IN_PROCESSING"]Crypto deposit finalized; settle from its hold before the venue fallback.DepositRecords a final movementTechnical mapping
Selected when
The connector evaluates these conditions against each observed provider record.
- Status is FINALIZED
Ledger record
The stored name and reference keep repeated observations idempotent.
- Stored template
bitstamp.DEPOSIT_DONE- Ledger effect
- Records a final movement
- Reference pattern
dep:{conn_id}:{id}:done- Effective time
- Timestamp
Inputs passed to the template
Each input comes from the selected provider record or a value derived from it.
$assetDerived from Asset symbol and Precisionumn(asset_symbol, precision)$amountDerived from Amount and Precisionunits(amount, precision)$conn_idFrom Conn IDconn_id$bucketFrom Bucketbucket$tx_idDerived from IDstr(id)$statusFrom Statusstatus$txidDerived from Txidstr(default(txid, ""))$networkDerived from Networkstr(default(network, ""))$addressDerived from Destination addressstr(default(destination_address, ""))View the exact selection expression
kind == "deposit" && status == "FINALIZED"Crypto deposit reverted or rejected; drain the hold back to the venue.DepositRecords a final movementTechnical mapping
Selected when
The connector evaluates these conditions against each observed provider record.
- Status is one of REVERTED or REJECTED
Ledger record
The stored name and reference keep repeated observations idempotent.
- Stored template
bitstamp.DEPOSIT_COMPENSATE- Ledger effect
- Records a final movement
- Reference pattern
dep:{conn_id}:{id}:reverted- Effective time
- Timestamp
Inputs passed to the template
Each input comes from the selected provider record or a value derived from it.
$assetDerived from Asset symbol and Precisionumn(asset_symbol, precision)$conn_idFrom Conn IDconn_id$tx_idDerived from IDstr(id)$statusFrom StatusstatusView the exact selection expression
kind == "deposit" && status in ["REVERTED", "REJECTED"]Settled fiat bank deposit; book it from the venue into the fiat balance.TransactionRecords a final movementTechnical mapping
Selected when
The connector evaluates these conditions against each observed provider record.
- Kind is User transaction
- Type is 0
- Asset symbol is present
Ledger record
The stored name and reference keep repeated observations idempotent.
- Stored template
bitstamp.FIAT_DEPOSIT- Ledger effect
- Records a final movement
- Reference pattern
utx:{conn_id}:{id}- Effective time
- Timestamp
Inputs passed to the template
Each input comes from the selected provider record or a value derived from it.
$assetDerived from Asset symbol and Precisionumn(asset_symbol, precision)$amountDerived from Amount and Precisionunits(amount, precision)$conn_idFrom Conn IDconn_id$bucketFrom Bucketbucket$utx_idDerived from IDstr(id)View the exact selection expression
kind == "user_transaction" && obj["type"] == "0" && default(asset_symbol, "") != ""Withdrawal opened; reserve the funds from the balance into its hold.WithdrawalOpens a transitional balanceTechnical mapping
Selected when
The connector evaluates these conditions against each observed provider record.
- Status is one of 0 or 1
Ledger record
The stored name and reference keep repeated observations idempotent.
- Stored template
bitstamp.WITHDRAWAL_HOLD- Ledger effect
- Opens a transitional balance
- Reference pattern
wd:{conn_id}:{id}:hold- Effective time
- Timestamp
Inputs passed to the template
Each input comes from the selected provider record or a value derived from it.
$assetDerived from Asset symbol and Precisionumn(asset_symbol, precision)$amountDerived from Amount and Precisionunits(amount, precision)$conn_idFrom Conn IDconn_id$bucketFrom Bucketbucket$tx_idDerived from IDstr(id)$statusDerived from Statusstr(status)View the exact selection expression
kind == "withdrawal" && str(status) in ["0", "1"]Withdrawal finished; settle from its hold before the original wallet fallback.WithdrawalRecords a final movementTechnical mapping
Selected when
The connector evaluates these conditions against each observed provider record.
- Status is 2
Ledger record
The stored name and reference keep repeated observations idempotent.
- Stored template
bitstamp.WITHDRAWAL_DONE- Ledger effect
- Records a final movement
- Reference pattern
wd:{conn_id}:{id}:done- Effective time
- Timestamp
Inputs passed to the template
Each input comes from the selected provider record or a value derived from it.
$assetDerived from Asset symbol and Precisionumn(asset_symbol, precision)$amountDerived from Amount and Precisionunits(amount, precision)$conn_idFrom Conn IDconn_id$bucketFrom Bucketbucket$tx_idDerived from IDstr(id)$statusDerived from Statusstr(status)View the exact selection expression
kind == "withdrawal" && str(status) == "2"Withdrawal canceled or failed; drain the hold back to the balance.WithdrawalRecords a final movementTechnical mapping
Selected when
The connector evaluates these conditions against each observed provider record.
- Status is one of 3 or 4
Ledger record
The stored name and reference keep repeated observations idempotent.
- Stored template
bitstamp.WITHDRAWAL_COMPENSATE- Ledger effect
- Records a final movement
- Reference pattern
wd:{conn_id}:{id}:reverted- Effective time
- Timestamp
Inputs passed to the template
Each input comes from the selected provider record or a value derived from it.
$assetDerived from Asset symbol and Precisionumn(asset_symbol, precision)$conn_idFrom Conn IDconn_id$bucketFrom Bucketbucket$tx_idDerived from IDstr(id)$statusDerived from Statusstr(status)View the exact selection expression
kind == "withdrawal" && str(status) in ["3", "4"]Settled withdrawal fee from the journal; book it from the balance to the venue.TransactionRecords a final movementTechnical mapping
Selected when
The connector evaluates these conditions against each observed provider record.
- Kind is User transaction
- Type is 1
- default(has fee, false)
Ledger record
The stored name and reference keep repeated observations idempotent.
- Stored template
bitstamp.WITHDRAWAL_FEE- Ledger effect
- Records a final movement
- Reference pattern
utx:{conn_id}:{id}- Effective time
- Timestamp
Inputs passed to the template
Each input comes from the selected provider record or a value derived from it.
$fee_assetDerived from Fee currency and Fee precisionumn(fee_currency, fee_precision)$fee_amountDerived from Fee and Fee precisionunits(fee, fee_precision)$fee_bucketFrom Fee bucketfee_bucket$conn_idFrom Conn IDconn_id$source_typeDerived from Typestr(obj["type"])$utx_idDerived from IDstr(id)View the exact selection expression
kind == "user_transaction" && obj["type"] == "1" && default(has_fee, false)Spot trade fill with a fee (also covers fiat/stablecoin swaps).TransactionRecords a final movementTechnical mapping
Selected when
The connector evaluates these conditions against each observed provider record.
- Kind is User transaction
- Type is one of 2 or 36
- Source currency is present
- Has fee
Ledger record
The stored name and reference keep repeated observations idempotent.
- Stored template
bitstamp.TRADE- Ledger effect
- Records a final movement
- Reference pattern
utx:{conn_id}:{id}- Effective time
- Timestamp
Inputs passed to the template
Each input comes from the selected provider record or a value derived from it.
$src_assetDerived from Source currency and Source precisionumn(src_currency, src_precision)$src_amountDerived from Source amount and Source precisionunits(src_amount, src_precision)$src_bucketFrom Source bucketsrc_bucket$dst_assetDerived from Dst currency and Dst precisionumn(dst_currency, dst_precision)$dst_amountDerived from Dst amount and Dst precisionunits(dst_amount, dst_precision)$dst_bucketFrom Dst bucketdst_bucket$fee_assetDerived from Fee currency and Fee precisionumn(fee_currency, fee_precision)$fee_amountDerived from Fee and Fee precisionunits(default(fee, "0"), fee_precision)$fee_bucketFrom Fee bucketfee_bucket$conn_idFrom Conn IDconn_id$order_idDerived from Order IDstr(default(order_id, ""))$event_typeDerived from Typeobj["type"] == "36" ? "conversion" : "trade"$source_typeDerived from Typestr(obj["type"])$utx_idDerived from IDstr(id)View the exact selection expression
kind == "user_transaction" && obj["type"] in ["2", "36"] && default(src_currency, "") != "" && has_feeSpot trade fill with no fee (maker rebate or fee-free market).TransactionRecords a final movementTechnical mapping
Selected when
The connector evaluates these conditions against each observed provider record.
- Kind is User transaction
- Type is one of 2 or 36
- Source currency is present
Ledger record
The stored name and reference keep repeated observations idempotent.
- Stored template
bitstamp.TRADE_NO_FEE- Ledger effect
- Records a final movement
- Reference pattern
utx:{conn_id}:{id}- Effective time
- Timestamp
Inputs passed to the template
Each input comes from the selected provider record or a value derived from it.
$src_assetDerived from Source currency and Source precisionumn(src_currency, src_precision)$src_amountDerived from Source amount and Source precisionunits(src_amount, src_precision)$src_bucketFrom Source bucketsrc_bucket$dst_assetDerived from Dst currency and Dst precisionumn(dst_currency, dst_precision)$dst_amountDerived from Dst amount and Dst precisionunits(dst_amount, dst_precision)$dst_bucketFrom Dst bucketdst_bucket$conn_idFrom Conn IDconn_id$order_idDerived from Order IDstr(default(order_id, ""))$event_typeDerived from Typeobj["type"] == "36" ? "conversion" : "trade"$source_typeDerived from Typestr(obj["type"])$utx_idDerived from IDstr(id)View the exact selection expression
kind == "user_transaction" && obj["type"] in ["2", "36"] && default(src_currency, "") != ""Sub-account transfer in; the venue counterparty funds this account's balance.TransactionRecords a final movementTechnical mapping
Selected when
The connector evaluates these conditions against each observed provider record.
- Kind is User transaction
- Type is one of 14 or 35
- Direction is In
Ledger record
The stored name and reference keep repeated observations idempotent.
- Stored template
bitstamp.SUBACCOUNT_TRANSFER_IN- Ledger effect
- Records a final movement
- Reference pattern
utx:{conn_id}:{id}- Effective time
- Timestamp
Inputs passed to the template
Each input comes from the selected provider record or a value derived from it.
$assetDerived from Asset symbol and Precisionumn(asset_symbol, precision)$amountDerived from Amount and Precisionunits(amount, precision)$conn_idFrom Conn IDconn_id$bucketFrom Bucketbucket$source_typeDerived from Typestr(obj["type"])$utx_idDerived from IDstr(id)View the exact selection expression
kind == "user_transaction" && obj["type"] in ["14", "35"] && direction == "in"Sub-account transfer out; this account's balance moves to the venue counterparty.TransactionRecords a final movementTechnical mapping
Selected when
The connector evaluates these conditions against each observed provider record.
- Kind is User transaction
- Type is one of 14 or 35
- Direction is Out
Ledger record
The stored name and reference keep repeated observations idempotent.
- Stored template
bitstamp.SUBACCOUNT_TRANSFER_OUT- Ledger effect
- Records a final movement
- Reference pattern
utx:{conn_id}:{id}- Effective time
- Timestamp
Inputs passed to the template
Each input comes from the selected provider record or a value derived from it.
$assetDerived from Asset symbol and Precisionumn(asset_symbol, precision)$amountDerived from Amount and Precisionunits(amount, precision)$conn_idFrom Conn IDconn_id$bucketFrom Bucketbucket$source_typeDerived from Typestr(obj["type"])$utx_idDerived from IDstr(id)View the exact selection expression
kind == "user_transaction" && obj["type"] in ["14", "35"] && direction == "out"Derivatives fill; record it as an open-position marker (fees settle later).Derivatives_tradeOpens a transitional balanceTechnical mapping
Selected when
The connector evaluates these conditions against each observed provider record.
- Position ID is present
Ledger record
The stored name and reference keep repeated observations idempotent.
- Stored template
bitstamp.POSITION_FILL- Ledger effect
- Opens a transitional balance
- Reference pattern
fill:{conn_id}:{trade_id}- Effective time
- Timestamp
Inputs passed to the template
Each input comes from the selected provider record or a value derived from it.
$conn_idFrom Conn IDconn_id$position_idDerived from Position IDslug(position_id)View the exact selection expression
kind == "derivatives_trade" && default(position_id, "") != ""Position settlement with a net gain; credit the margin from PnL.TransactionRecords a final movementTechnical mapping
Selected when
The connector evaluates these conditions against each observed provider record.
- Kind is Position settlement
- Settle sign is Gain
Ledger record
The stored name and reference keep repeated observations idempotent.
- Stored template
bitstamp.POSITION_SETTLEMENT_GAIN- Ledger effect
- Records a final movement
- Reference pattern
settle:{conn_id}:{transaction_id}- Effective time
- Timestamp
Inputs passed to the template
Each input comes from the selected provider record or a value derived from it.
$assetDerived from Settle asset and Settle precisionumn(settle_asset, settle_precision)$amountDerived from Absolute settle and Settle precisionunits(settle_abs, settle_precision)$conn_idFrom Conn IDconn_id$position_idDerived from Position IDslug(default(position_id, "unknown"))View the exact selection expression
kind == "position_settlement" && settle_sign == "gain"Position settlement with a net loss; debit the margin into PnL.TransactionRecords a final movementTechnical mapping
Selected when
The connector evaluates these conditions against each observed provider record.
- Kind is Position settlement
- Settle sign is Loss
Ledger record
The stored name and reference keep repeated observations idempotent.
- Stored template
bitstamp.POSITION_SETTLEMENT_LOSS- Ledger effect
- Records a final movement
- Reference pattern
settle:{conn_id}:{transaction_id}- Effective time
- Timestamp
Inputs passed to the template
Each input comes from the selected provider record or a value derived from it.
$assetDerived from Settle asset and Settle precisionumn(settle_asset, settle_precision)$amountDerived from Absolute settle and Settle precisionunits(settle_abs, settle_precision)$conn_idFrom Conn IDconn_id$position_idDerived from Position IDslug(default(position_id, "unknown"))View the exact selection expression
kind == "position_settlement" && settle_sign == "loss"Earn subscription; move principal from the balance into earn.Earn_transactionRecords a final movementTechnical mapping
Selected when
The connector evaluates these conditions against each observed provider record.
- Type is SUBSCRIBE
- Status is COMPLETED
Ledger record
The stored name and reference keep repeated observations idempotent.
- Stored template
bitstamp.EARN_SUBSCRIBE- Ledger effect
- Records a final movement
- Reference pattern
earn:{conn_id}:{earn_id}- Effective time
- Timestamp
Inputs passed to the template
Each input comes from the selected provider record or a value derived from it.
$assetDerived from Asset symbol and Precisionumn(asset_symbol, precision)$amountDerived from Amount and Precisionunits(amount, precision)$conn_idFrom Conn IDconn_id$bucketFrom BucketbucketView the exact selection expression
kind == "earn_transaction" && obj["type"] == "SUBSCRIBE" && status == "COMPLETED"Earn unsubscription; return principal from earn to the balance.Earn_transactionRecords a final movementTechnical mapping
Selected when
The connector evaluates these conditions against each observed provider record.
- Type is UNSUBSCRIBE
- Status is COMPLETED
Ledger record
The stored name and reference keep repeated observations idempotent.
- Stored template
bitstamp.EARN_UNSUBSCRIBE- Ledger effect
- Records a final movement
- Reference pattern
earn:{conn_id}:{earn_id}- Effective time
- Timestamp
Inputs passed to the template
Each input comes from the selected provider record or a value derived from it.
$assetDerived from Asset symbol and Precisionumn(asset_symbol, precision)$amountDerived from Amount and Precisionunits(amount, precision)$conn_idFrom Conn IDconn_id$bucketFrom BucketbucketView the exact selection expression
kind == "earn_transaction" && obj["type"] == "UNSUBSCRIBE" && status == "COMPLETED"Earn reward or interest distribution; credit the dedicated earn reward account from the earn program.Earn_transactionRecords a final movementTechnical mapping
Selected when
The connector evaluates these conditions against each observed provider record.
- Status is COMPLETED
Ledger record
The stored name and reference keep repeated observations idempotent.
- Stored template
bitstamp.EARN_REWARD- Ledger effect
- Records a final movement
- Reference pattern
earn:{conn_id}:{earn_id}- Effective time
- Timestamp
Inputs passed to the template
Each input comes from the selected provider record or a value derived from it.
$assetDerived from Asset symbol and Precisionumn(asset_symbol, precision)$amountDerived from Amount and Precisionunits(amount, precision)$conn_idFrom Conn IDconn_idView the exact selection expression
kind == "earn_transaction" && status == "COMPLETED"Use these prepared queries to find provider records in Ledger. Each description explains what the query returns.
Transaction(s) by the source user_transactions id (utx_id).
transaction-by-utxQuery parameters
Metadata_string filter on bitstamp.net/utx-id using utx_id
Transactions filtered by event_type metadata.
transactions-by-eventQuery parameters
Metadata_string filter on formance.com/observation.event-type using event_type
The hold to done/reverted chain for one source id.
transaction-lifecycleQuery parameters
Metadata_string filter on bitstamp.net/tx-id using tx_id
Accounts under a given address prefix (in-flight holds, per category).
accounts-by-prefixQuery parameters
Address_prefix filter using prefix
Technical reference
Config
Set up a connection with Bitstamp
Fill in the fields required to start, then download the configuration file and install the connection with fctl.
Before you begin, follow Set up a connection to select your profile and target stack.
Choose the ledger this connection will write to. The destination cannot be changed after installation.
This documentation uses v0.5.0-beta.8 for the beta channel. Your stack resolves the channel when you install, then follows its compatible releases.
Required to start
2 fieldsBitstamp API key.
Bitstamp API secret used as the HMAC key.
Optional settings15 fields · keep their defaults unless changed
Bitstamp endpoint
Bitstamp HTTP API v2 base URL.
Default: https://www.bitstamp.net/api/v2
Account identity
Ledger connection identifier; when omitted, the connector resolves the account or user ID bound to the API key.
Sub-account identifier sent in X-Auth-Subaccount-Id.
Repeatable sub-account specifications: id=<id>[,key=<key>,secret=<secret>][,earn][,derivatives].
What to ingest
Outside the supported scope; leave off. Opt in to derivatives trades, settlements, and margin information. Requires product access and endpoint read permissions.
Opt in to Earn transactions and subscription attestations. Requires product access and endpoint read permissions.
Live tail
Enable the optional WebSocket live tail for order fills after the REST backfill.
Markets to subscribe to when streaming; when omitted, the connector discovers all markets.
Bitstamp WebSocket feed base URL.
Default: wss://ws.bitstamp.net
History and watermarks
First-run backfill window (no cursor): how far back to fetch.
Default: 87600h0m0s
Safety overlap subtracted from the oldest in-flight item.
Default: 5m0s
Numscript delivery
Numscript delivery: 'stored' registers the script in the ledger and references it by name; 'explicit' inlines the source in every transaction, for testing.
Default: stored
Stored Numscript version override; use latest or an explicit version.
Pacing and retries
Shared per-IP request pacing across all configured Bitstamp accounts.
Default: 8
Max retries on HTTP 429/5xx (honoring Retry-After) before failing a fetch.
Default: 4
Install with fctl
Still needed: Destination ledger, API_KEY, API_SECRET.
Then install the connection from the downloaded file:
Install without a file
fctl reads the configuration from stdin when you pass --config -, which it only accepts with --confirm. The values, credentials included, then stay in your shell history.
This page builds the file in your browser and never stores or sends what you enter. The file contains the credentials you type. Treat it as a secret, and delete it once the connection is installed.
Check the connection
After installation, run this in the same terminal and stack context:
Check the recorded lifecycle, applied version, ingestion progress, and service errors. A successful install means the stack accepted the connection. To confirm that records arrive, look for them in the destination ledger.
v0.5.0Nov 6, 2026
Nov 6, 2026
The Bitstamp 0.5.0 connector reads a Bitstamp account, and the sub-accounts you name, into Formance Ledger: deposits, withdrawals, trades, conversions, fees, Earn activity and the balances Bitstamp reports. The connector only reads. It never places an order, initiates a withdrawal or moves funds on Bitstamp.
How an account appears in the ledger
Each Bitstamp account you connect has two balances in the ledger. One holds fiat currencies and stablecoins, the other holds every other digital asset, and each carries all the assets of its kind. The connector books money that enters or leaves the account, fees included, against a counterparty account that stands for Bitstamp, so every movement has a named other side in the ledger.
Amounts are booked to at least eight decimal places. Bitstamp displays fiat balances to the cent but calculates trades and fees more finely, so the ledger keeps detail that Bitstamp's own figures leave out. The balances section below explains how to compare the two.
Deposits and withdrawals
The connector holds a digital-asset deposit apart from the balance while Bitstamp reports it pending, and moves it into the balance when Bitstamp reports it final. If Bitstamp reverts or rejects the deposit, the connector releases the held amount and keeps the deposit's status on the record. A deposit first seen already final reaches the same balance. Each deposit carries its chain transaction, network and receiving address.
Fiat bank deposits arrive already settled, and the connector credits them when Bitstamp records them.
A withdrawal sets its funds aside when it opens and sends them out when Bitstamp reports it finished. A canceled or failed withdrawal returns its funds to the balance. When Bitstamp charges a fee for a withdrawal, the connector books the fee as a separate movement next to the withdrawal. The fee is treated as an additional charge on top of the withdrawal amount.
Trades and fees
The connector books every settled spot trade in either direction, including instant buys and sells and conversions between fiat currencies and stablecoins. Each trade moves the asset sold out of the balance and the asset bought into it. The trading fee is a separate movement in the currency Bitstamp charged it in, which makes the cost of each fill visible. Fills without a fee are booked too.
Sub-accounts
Name a sub-account in the configuration and the connector reads it alongside the main account, with its own balances in the same ledger. A transfer to or from a sub-account is booked on the sub-account as money leaving or arriving. Bitstamp does not show these transfers in the main account's history, so the main account's side of a transfer is not booked. Its ledger balance differs from the balance Bitstamp reports by the amount of those transfers.
Bitstamp Earn
Earn is off by default. With WITH_EARN=true, the connector follows Bitstamp
Earn on the main account.
A subscription moves the committed assets to their own Earn position, and an
unsubscription moves them back. Rewards are booked to a separate account, so
yield can be reported apart from principal.
Balances and history
Each time it finishes reading the account, the connector records the balances Bitstamp reports for each asset: available, total and reserved, plus the Earn amounts when Earn is enabled. They sit next to the ledger's own balances for comparison. The connector never calculates a difference or posts an adjustment.
Each recorded balance keeps the precision Bitstamp reports it at, such as
EUR/2, and names the ledger asset it compares with, such as EUR/8. Bitstamp
reports fiat balances to the cent while the ledger keeps every digit of the
trades and fees behind them, so cut the ledger balance to Bitstamp's precision
before comparing. A ledger balance of 10.94239 euros matches a reported 10.94.
The first connection reads the account back to its first transaction. That goes further than the 30 days Bitstamp's API filters reach, and each movement is booked once however often Bitstamp returns it.
Optional live trade feed
The live feed is off by default. With STREAM=true, the connector also listens
to Bitstamp's live feed and books
a filled trade sooner. It still confirms every trade against Bitstamp's settled
history, and that history decides completeness, so a missed live message never
means a missed trade. Deposits, withdrawals and balances have no live feed and
appear with a short delay.
Not covered
- Derivatives. The
WITH_DERIVATIVESsetting exists and is off by default. It is outside the supported scope; leave it off. - Placing orders, withdrawals or transfers, closing positions, and changing Earn subscriptions.
- Open orders. An order appears once its fills settle. Funds held by an open order show only in the reserved balance Bitstamp reports.
- Sub-accounts the configuration does not name. Bitstamp offers no way to list them.
- Legacy staking and referral rewards, transfers that carry a fee, and activity types Bitstamp does not document. When the connector meets one, it pauses updates for that account until a later release supports it, instead of guessing how to book it.
- Deposit or withdrawal history beyond 200,000 records of each kind. Bitstamp's API stops there, and older records need an export from Bitstamp.
Setting up
API_KEY and API_SECRET are required. Use a read-only key, with read access
to Earn if you enable it. API_BASE_URL points at Bitstamp's production API by
default. CONN_ID names the account in the ledger and defaults to the user ID
the key belongs to.
Add each sub-account as a SUBACCOUNT entry in the form
id=<id>,key=<key>,secret=<secret>. Each sub-account needs its own API key,
because Bitstamp answers a main-account key with the main account's data.
INITIAL_LOOKBACK defaults to ten years and sets how far back a new connection
reads. Choose a start older than every deposit and withdrawal that is still
pending.
Updates
A later compatible release continues from the connector's saved progress and
changes only what it writes from then on. History already in the ledger is never
rewritten, backfilled or renamed. When a release changes the accounting profile,
the connector pauses until you confirm the change: deploy once with
CONNECTIVITY_ALLOW_PROFILE_CHANGE=true, wait for a successful fetch, then
remove the setting. If saved progress cannot be resumed, the connector stops
before contacting Bitstamp and says so. In that case, install a fresh connection
on a separate ledger and keep the previous one with its history.
Nov 3, 2026
The Bitstamp 0.5.0 connector reads a Bitstamp account, and the sub-accounts you name, into Formance Ledger: deposits, withdrawals, trades, conversions, fees, Earn activity and the balances Bitstamp reports. The connector only reads. It never places an order, initiates a withdrawal or moves funds on Bitstamp.
How an account appears in the ledger
Each Bitstamp account you connect has two balances in the ledger. One holds fiat currencies and stablecoins, the other holds every other digital asset, and each carries all the assets of its kind. The connector books money that enters or leaves the account, fees included, against a counterparty account that stands for Bitstamp, so every movement has a named other side in the ledger.
Amounts are booked to at least eight decimal places. Bitstamp displays fiat balances to the cent but calculates trades and fees more finely, so the ledger keeps detail that Bitstamp's own figures leave out. The balances section below explains how to compare the two.
Deposits and withdrawals
The connector holds a digital-asset deposit apart from the balance while Bitstamp reports it pending, and moves it into the balance when Bitstamp reports it final. If Bitstamp reverts or rejects the deposit, the connector releases the held amount and keeps the deposit's status on the record. A deposit first seen already final reaches the same balance. Each deposit carries its chain transaction, network and receiving address.
Fiat bank deposits arrive already settled, and the connector credits them when Bitstamp records them.
A withdrawal sets its funds aside when it opens and sends them out when Bitstamp reports it finished. A canceled or failed withdrawal returns its funds to the balance. When Bitstamp charges a fee for a withdrawal, the connector books the fee as a separate movement next to the withdrawal. The fee is treated as an additional charge on top of the withdrawal amount.
Trades and fees
The connector books every settled spot trade in either direction, including instant buys and sells and conversions between fiat currencies and stablecoins. Each trade moves the asset sold out of the balance and the asset bought into it. The trading fee is a separate movement in the currency Bitstamp charged it in, which makes the cost of each fill visible. Fills without a fee are booked too.
Sub-accounts
Name a sub-account in the configuration and the connector reads it alongside the main account, with its own balances in the same ledger. A transfer to or from a sub-account is booked on the sub-account as money leaving or arriving. Bitstamp does not show these transfers in the main account's history, so the main account's side of a transfer is not booked. Its ledger balance differs from the balance Bitstamp reports by the amount of those transfers.
Bitstamp Earn
Earn is off by default. With WITH_EARN=true, the connector follows Bitstamp
Earn on the main account.
A subscription moves the committed assets to their own Earn position, and an
unsubscription moves them back. Rewards are booked to a separate account, so
yield can be reported apart from principal.
Balances and history
Each time it finishes reading the account, the connector records the balances Bitstamp reports for each asset: available, total and reserved, plus the Earn amounts when Earn is enabled. They sit next to the ledger's own balances for comparison. The connector never calculates a difference or posts an adjustment.
Each recorded balance keeps the precision Bitstamp reports it at, such as
EUR/2, and names the ledger asset it compares with, such as EUR/8. Bitstamp
reports fiat balances to the cent while the ledger keeps every digit of the
trades and fees behind them, so cut the ledger balance to Bitstamp's precision
before comparing. A ledger balance of 10.94239 euros matches a reported 10.94.
The first connection reads the account back to its first transaction. That goes further than the 30 days Bitstamp's API filters reach, and each movement is booked once however often Bitstamp returns it.
Optional live trade feed
The live feed is off by default. With STREAM=true, the connector also listens
to Bitstamp's live feed and books
a filled trade sooner. It still confirms every trade against Bitstamp's settled
history, and that history decides completeness, so a missed live message never
means a missed trade. Deposits, withdrawals and balances have no live feed and
appear with a short delay.
Not covered
- Derivatives. The
WITH_DERIVATIVESsetting exists and is off by default. It is outside the supported scope; leave it off. - Placing orders, withdrawals or transfers, closing positions, and changing Earn subscriptions.
- Open orders. An order appears once its fills settle. Funds held by an open order show only in the reserved balance Bitstamp reports.
- Sub-accounts the configuration does not name. Bitstamp offers no way to list them.
- Legacy staking and referral rewards, transfers that carry a fee, and activity types Bitstamp does not document. When the connector meets one, it pauses updates for that account until a later release supports it, instead of guessing how to book it.
- Deposit or withdrawal history beyond 200,000 records of each kind. Bitstamp's API stops there, and older records need an export from Bitstamp.
Setting up
API_KEY and API_SECRET are required. Use a read-only key, with read access
to Earn if you enable it. API_BASE_URL points at Bitstamp's production API by
default. CONN_ID names the account in the ledger and defaults to the user ID
the key belongs to.
Add each sub-account as a SUBACCOUNT entry in the form
id=<id>,key=<key>,secret=<secret>. Each sub-account needs its own API key,
because Bitstamp answers a main-account key with the main account's data.
INITIAL_LOOKBACK defaults to ten years and sets how far back a new connection
reads. Choose a start older than every deposit and withdrawal that is still
pending.
Updates
A later compatible release continues from the connector's saved progress and
changes only what it writes from then on. History already in the ledger is never
rewritten, backfilled or renamed. When a release changes the accounting profile,
the connector pauses until you confirm the change: deploy once with
CONNECTIVITY_ALLOW_PROFILE_CHANGE=true, wait for a successful fetch, then
remove the setting. If saved progress cannot be resumed, the connector stops
before contacting Bitstamp and says so. In that case, install a fresh connection
on a separate ledger and keep the previous one with its history.
Oct 29, 2026
The Bitstamp 0.5.0 connector reads a Bitstamp account, and the sub-accounts you name, into Formance Ledger: deposits, withdrawals, trades, conversions, fees, Earn activity and the balances Bitstamp reports. The connector only reads. It never places an order, initiates a withdrawal or moves funds on Bitstamp.
How an account appears in the ledger
Each Bitstamp account you connect has two balances in the ledger. One holds fiat currencies and stablecoins, the other holds every other digital asset, and each carries all the assets of its kind. The connector books money that enters or leaves the account, fees included, against a counterparty account that stands for Bitstamp, so every movement has a named other side in the ledger.
Amounts are booked to at least eight decimal places. Bitstamp displays fiat balances to the cent but calculates trades and fees more finely, so the ledger keeps detail that Bitstamp's own figures leave out. The balances section below explains how to compare the two.
Deposits and withdrawals
The connector holds a digital-asset deposit apart from the balance while Bitstamp reports it pending, and moves it into the balance when Bitstamp reports it final. If Bitstamp reverts or rejects the deposit, the connector releases the held amount and keeps the deposit's status on the record. A deposit first seen already final reaches the same balance. Each deposit carries its chain transaction, network and receiving address.
Fiat bank deposits arrive already settled, and the connector credits them when Bitstamp records them.
A withdrawal sets its funds aside when it opens and sends them out when Bitstamp reports it finished. A canceled or failed withdrawal returns its funds to the balance. When Bitstamp charges a fee for a withdrawal, the connector books the fee as a separate movement next to the withdrawal. The fee is treated as an additional charge on top of the withdrawal amount.
Trades and fees
The connector books every settled spot trade in either direction, including instant buys and sells and conversions between fiat currencies and stablecoins. Each trade moves the asset sold out of the balance and the asset bought into it. The trading fee is a separate movement in the currency Bitstamp charged it in, which makes the cost of each fill visible. Fills without a fee are booked too.
Sub-accounts
Name a sub-account in the configuration and the connector reads it alongside the main account, with its own balances in the same ledger. A transfer to or from a sub-account is booked on the sub-account as money leaving or arriving. Bitstamp does not show these transfers in the main account's history, so the main account's side of a transfer is not booked. Its ledger balance differs from the balance Bitstamp reports by the amount of those transfers.
Bitstamp Earn
Earn is off by default. With WITH_EARN=true, the connector follows Bitstamp
Earn on the main account.
A subscription moves the committed assets to their own Earn position, and an
unsubscription moves them back. Rewards are booked to a separate account, so
yield can be reported apart from principal.
Balances and history
Each time it finishes reading the account, the connector records the balances Bitstamp reports for each asset: available, total and reserved, plus the Earn amounts when Earn is enabled. They sit next to the ledger's own balances for comparison. The connector never calculates a difference or posts an adjustment.
Each recorded balance keeps the precision Bitstamp reports it at, such as
EUR/2, and names the ledger asset it compares with, such as EUR/8. Bitstamp
reports fiat balances to the cent while the ledger keeps every digit of the
trades and fees behind them, so cut the ledger balance to Bitstamp's precision
before comparing. A ledger balance of 10.94239 euros matches a reported 10.94.
The first connection reads the account back to its first transaction. That goes further than the 30 days Bitstamp's API filters reach, and each movement is booked once however often Bitstamp returns it.
Optional live trade feed
The live feed is off by default. With STREAM=true, the connector also listens
to Bitstamp's live feed and books
a filled trade sooner. It still confirms every trade against Bitstamp's settled
history, and that history decides completeness, so a missed live message never
means a missed trade. Deposits, withdrawals and balances have no live feed and
appear with a short delay.
Not covered
- Derivatives. The
WITH_DERIVATIVESsetting exists and is off by default. It is outside the supported scope; leave it off. - Placing orders, withdrawals or transfers, closing positions, and changing Earn subscriptions.
- Open orders. An order appears once its fills settle. Funds held by an open order show only in the reserved balance Bitstamp reports.
- Sub-accounts the configuration does not name. Bitstamp offers no way to list them.
- Legacy staking and referral rewards, transfers that carry a fee, and activity types Bitstamp does not document. When the connector meets one, it pauses updates for that account until a later release supports it, instead of guessing how to book it.
- Deposit or withdrawal history beyond 200,000 records of each kind. Bitstamp's API stops there, and older records need an export from Bitstamp.
Setting up
API_KEY and API_SECRET are required. Use a read-only key, with read access
to Earn if you enable it. API_BASE_URL points at Bitstamp's production API by
default. CONN_ID names the account in the ledger and defaults to the user ID
the key belongs to.
Add each sub-account as a SUBACCOUNT entry in the form
id=<id>,key=<key>,secret=<secret>. Each sub-account needs its own API key,
because Bitstamp answers a main-account key with the main account's data.
INITIAL_LOOKBACK defaults to ten years and sets how far back a new connection
reads. Choose a start older than every deposit and withdrawal that is still
pending.
Updates
A later compatible release continues from the connector's saved progress and
changes only what it writes from then on. History already in the ledger is never
rewritten, backfilled or renamed. When a release changes the accounting profile,
the connector pauses until you confirm the change: deploy once with
CONNECTIVITY_ALLOW_PROFILE_CHANGE=true, wait for a successful fetch, then
remove the setting. If saved progress cannot be resumed, the connector stops
before contacting Bitstamp and says so. In that case, install a fresh connection
on a separate ledger and keep the previous one with its history.
Oct 28, 2026 · 21:59 UTC
The Bitstamp 0.5.0 connector reads a Bitstamp account, and the sub-accounts you name, into Formance Ledger: deposits, withdrawals, trades, conversions, fees, Earn activity and the balances Bitstamp reports. The connector only reads. It never places an order, initiates a withdrawal or moves funds on Bitstamp.
How an account appears in the ledger
Each Bitstamp account you connect has two balances in the ledger. One holds fiat currencies and stablecoins, the other holds every other digital asset, and each carries all the assets of its kind. The connector books money that enters or leaves the account, fees included, against a counterparty account that stands for Bitstamp, so every movement has a named other side in the ledger.
Amounts are booked to at least eight decimal places. Bitstamp displays fiat balances to the cent but calculates trades and fees more finely, so the ledger keeps detail that Bitstamp's own figures leave out. The balances section below explains how to compare the two.
Deposits and withdrawals
The connector holds a digital-asset deposit apart from the balance while Bitstamp reports it pending, and moves it into the balance when Bitstamp reports it final. If Bitstamp reverts or rejects the deposit, the connector releases the held amount and keeps the deposit's status on the record. A deposit first seen already final reaches the same balance. Each deposit carries its chain transaction, network and receiving address.
Fiat bank deposits arrive already settled, and the connector credits them when Bitstamp records them.
A withdrawal sets its funds aside when it opens and sends them out when Bitstamp reports it finished. A canceled or failed withdrawal returns its funds to the balance. When Bitstamp charges a fee for a withdrawal, the connector books the fee as a separate movement next to the withdrawal. The fee is treated as an additional charge on top of the withdrawal amount.
Trades and fees
The connector books every settled spot trade in either direction, including instant buys and sells and conversions between fiat currencies and stablecoins. Each trade moves the asset sold out of the balance and the asset bought into it. The trading fee is a separate movement in the currency Bitstamp charged it in, which makes the cost of each fill visible. Fills without a fee are booked too.
Sub-accounts
Name a sub-account in the configuration and the connector reads it alongside the main account, with its own balances in the same ledger. A transfer to or from a sub-account is booked on the sub-account as money leaving or arriving. Bitstamp does not show these transfers in the main account's history, so the main account's side of a transfer is not booked. Its ledger balance differs from the balance Bitstamp reports by the amount of those transfers.
Bitstamp Earn
Earn is off by default. With WITH_EARN=true, the connector follows Bitstamp
Earn on the main account.
A subscription moves the committed assets to their own Earn position, and an
unsubscription moves them back. Rewards are booked to a separate account, so
yield can be reported apart from principal.
Balances and history
Each time it finishes reading the account, the connector records the balances Bitstamp reports for each asset: available, total and reserved, plus the Earn amounts when Earn is enabled. They sit next to the ledger's own balances for comparison. The connector never calculates a difference or posts an adjustment.
Each recorded balance keeps the precision Bitstamp reports it at, such as
EUR/2, and names the ledger asset it compares with, such as EUR/8. Bitstamp
reports fiat balances to the cent while the ledger keeps every digit of the
trades and fees behind them, so cut the ledger balance to Bitstamp's precision
before comparing. A ledger balance of 10.94239 euros matches a reported 10.94.
The first connection reads the account back to its first transaction. That goes further than the 30 days Bitstamp's API filters reach, and each movement is booked once however often Bitstamp returns it.
Optional live trade feed
The live feed is off by default. With STREAM=true, the connector also listens
to Bitstamp's live feed and books
a filled trade sooner. It still confirms every trade against Bitstamp's settled
history, and that history decides completeness, so a missed live message never
means a missed trade. Deposits, withdrawals and balances have no live feed and
appear with a short delay.
Not covered
- Derivatives. The
WITH_DERIVATIVESsetting exists and is off by default. It is outside the supported scope; leave it off. - Placing orders, withdrawals or transfers, closing positions, and changing Earn subscriptions.
- Open orders. An order appears once its fills settle. Funds held by an open order show only in the reserved balance Bitstamp reports.
- Sub-accounts the configuration does not name. Bitstamp offers no way to list them.
- Legacy staking and referral rewards, transfers that carry a fee, and activity types Bitstamp does not document. When the connector meets one, it pauses updates for that account until a later release supports it, instead of guessing how to book it.
- Deposit or withdrawal history beyond 200,000 records of each kind. Bitstamp's API stops there, and older records need an export from Bitstamp.
Setting up
API_KEY and API_SECRET are required. Use a read-only key, with read access
to Earn if you enable it. API_BASE_URL points at Bitstamp's production API by
default. CONN_ID names the account in the ledger and defaults to the user ID
the key belongs to.
Add each sub-account as a SUBACCOUNT entry in the form
id=<id>,key=<key>,secret=<secret>. Each sub-account needs its own API key,
because Bitstamp answers a main-account key with the main account's data.
INITIAL_LOOKBACK defaults to ten years and sets how far back a new connection
reads. Choose a start older than every deposit and withdrawal that is still
pending.
Updates
A later compatible release continues from the connector's saved progress and
changes only what it writes from then on. History already in the ledger is never
rewritten, backfilled or renamed. When a release changes the accounting profile,
the connector pauses until you confirm the change: deploy once with
CONNECTIVITY_ALLOW_PROFILE_CHANGE=true, wait for a successful fetch, then
remove the setting. If saved progress cannot be resumed, the connector stops
before contacting Bitstamp and says so. In that case, install a fresh connection
on a separate ledger and keep the previous one with its history.
Oct 28, 2026 · 11:40 UTC
The Bitstamp 0.5.0 connector reads a Bitstamp account, and the sub-accounts you name, into Formance Ledger: deposits, withdrawals, trades, conversions, fees, Earn activity and the balances Bitstamp reports. The connector only reads. It never places an order, initiates a withdrawal or moves funds on Bitstamp.
How an account appears in the ledger
Each Bitstamp account you connect has two balances in the ledger. One holds fiat currencies and stablecoins, the other holds every other digital asset, and each carries all the assets of its kind. The connector books money that enters or leaves the account, fees included, against a counterparty account that stands for Bitstamp, so every movement has a named other side in the ledger.
Amounts are booked to at least eight decimal places. Bitstamp displays fiat balances to the cent but calculates trades and fees more finely, so the ledger keeps detail that Bitstamp's own figures leave out. The balances section below explains how to compare the two.
Deposits and withdrawals
The connector holds a digital-asset deposit apart from the balance while Bitstamp reports it pending, and moves it into the balance when Bitstamp reports it final. If Bitstamp reverts or rejects the deposit, the connector releases the held amount and keeps the deposit's status on the record. A deposit first seen already final reaches the same balance. Each deposit carries its chain transaction, network and receiving address.
Fiat bank deposits arrive already settled, and the connector credits them when Bitstamp records them.
A withdrawal sets its funds aside when it opens and sends them out when Bitstamp reports it finished. A canceled or failed withdrawal returns its funds to the balance. When Bitstamp charges a fee for a withdrawal, the connector books the fee as a separate movement next to the withdrawal. The fee is treated as an additional charge on top of the withdrawal amount.
Trades and fees
The connector books every settled spot trade in either direction, including instant buys and sells and conversions between fiat currencies and stablecoins. Each trade moves the asset sold out of the balance and the asset bought into it. The trading fee is a separate movement in the currency Bitstamp charged it in, which makes the cost of each fill visible. Fills without a fee are booked too.
Sub-accounts
Name a sub-account in the configuration and the connector reads it alongside the main account, with its own balances in the same ledger. A transfer to or from a sub-account is booked on the sub-account as money leaving or arriving. Bitstamp does not show these transfers in the main account's history, so the main account's side of a transfer is not booked. Its ledger balance differs from the balance Bitstamp reports by the amount of those transfers.
Bitstamp Earn
Earn is off by default. With WITH_EARN=true, the connector follows Bitstamp
Earn on the main account.
A subscription moves the committed assets to their own Earn position, and an
unsubscription moves them back. Rewards are booked to a separate account, so
yield can be reported apart from principal.
Balances and history
Each time it finishes reading the account, the connector records the balances Bitstamp reports for each asset: available, total and reserved, plus the Earn amounts when Earn is enabled. They sit next to the ledger's own balances for comparison. The connector never calculates a difference or posts an adjustment.
Each recorded balance keeps the precision Bitstamp reports it at, such as
EUR/2, and names the ledger asset it compares with, such as EUR/8. Bitstamp
reports fiat balances to the cent while the ledger keeps every digit of the
trades and fees behind them, so cut the ledger balance to Bitstamp's precision
before comparing. A ledger balance of 10.94239 euros matches a reported 10.94.
The first connection reads the account back to its first transaction. That goes further than the 30 days Bitstamp's API filters reach, and each movement is booked once however often Bitstamp returns it.
Optional live trade feed
The live feed is off by default. With STREAM=true, the connector also listens
to Bitstamp's live feed and books
a filled trade sooner. It still confirms every trade against Bitstamp's settled
history, and that history decides completeness, so a missed live message never
means a missed trade. Deposits, withdrawals and balances have no live feed and
appear with a short delay.
Not covered
- Derivatives. The
WITH_DERIVATIVESsetting exists and is off by default. It is outside the supported scope; leave it off. - Placing orders, withdrawals or transfers, closing positions, and changing Earn subscriptions.
- Open orders. An order appears once its fills settle. Funds held by an open order show only in the reserved balance Bitstamp reports.
- Sub-accounts the configuration does not name. Bitstamp offers no way to list them.
- Legacy staking and referral rewards, transfers that carry a fee, and activity types Bitstamp does not document. When the connector meets one, it pauses updates for that account until a later release supports it, instead of guessing how to book it.
- Deposit or withdrawal history beyond 200,000 records of each kind. Bitstamp's API stops there, and older records need an export from Bitstamp.
Setting up
API_KEY and API_SECRET are required. Use a read-only key, with read access
to Earn if you enable it. API_BASE_URL points at Bitstamp's production API by
default. CONN_ID names the account in the ledger and defaults to the user ID
the key belongs to.
Add each sub-account as a SUBACCOUNT entry in the form
id=<id>,key=<key>,secret=<secret>. Each sub-account needs its own API key,
because Bitstamp answers a main-account key with the main account's data.
INITIAL_LOOKBACK defaults to ten years and sets how far back a new connection
reads. Choose a start older than every deposit and withdrawal that is still
pending.
Updates
A later compatible release continues from the connector's saved progress and
changes only what it writes from then on. History already in the ledger is never
rewritten, backfilled or renamed. When a release changes the accounting profile,
the connector pauses until you confirm the change: deploy once with
CONNECTIVITY_ALLOW_PROFILE_CHANGE=true, wait for a successful fetch, then
remove the setting. If saved progress cannot be resumed, the connector stops
before contacting Bitstamp and says so. In that case, install a fresh connection
on a separate ledger and keep the previous one with its history.
Oct 26, 2026
The Bitstamp 0.5.0 connector reads a Bitstamp account, and the sub-accounts you name, into Formance Ledger: deposits, withdrawals, trades, conversions, fees, Earn activity and the balances Bitstamp reports. The connector only reads. It never places an order, initiates a withdrawal or moves funds on Bitstamp.
How an account appears in the ledger
Each Bitstamp account you connect has two balances in the ledger. One holds fiat currencies and stablecoins, the other holds every other digital asset, and each carries all the assets of its kind. The connector books money that enters or leaves the account, fees included, against a counterparty account that stands for Bitstamp, so every movement has a named other side in the ledger.
Amounts are booked to at least eight decimal places. Bitstamp displays fiat balances to the cent but calculates trades and fees more finely, so the ledger keeps detail that Bitstamp's own figures leave out. The balances section below explains how to compare the two.
Deposits and withdrawals
The connector holds a digital-asset deposit apart from the balance while Bitstamp reports it pending, and moves it into the balance when Bitstamp reports it final. If Bitstamp reverts or rejects the deposit, the connector releases the held amount and keeps the deposit's status on the record. A deposit first seen already final reaches the same balance. Each deposit carries its chain transaction, network and receiving address.
Fiat bank deposits arrive already settled, and the connector credits them when Bitstamp records them.
A withdrawal sets its funds aside when it opens and sends them out when Bitstamp reports it finished. A canceled or failed withdrawal returns its funds to the balance. When Bitstamp charges a fee for a withdrawal, the connector books the fee as a separate movement next to the withdrawal. The fee is treated as an additional charge on top of the withdrawal amount.
Trades and fees
The connector books every settled spot trade in either direction, including instant buys and sells and conversions between fiat currencies and stablecoins. Each trade moves the asset sold out of the balance and the asset bought into it. The trading fee is a separate movement in the currency Bitstamp charged it in, which makes the cost of each fill visible. Fills without a fee are booked too.
Sub-accounts
Name a sub-account in the configuration and the connector reads it alongside the main account, with its own balances in the same ledger. A transfer to or from a sub-account is booked on the sub-account as money leaving or arriving. Bitstamp does not show these transfers in the main account's history, so the main account's side of a transfer is not booked. Its ledger balance differs from the balance Bitstamp reports by the amount of those transfers.
Bitstamp Earn
Earn is off by default. With WITH_EARN=true, the connector follows Bitstamp
Earn on the main account.
A subscription moves the committed assets to their own Earn position, and an
unsubscription moves them back. Rewards are booked to a separate account, so
yield can be reported apart from principal.
Balances and history
Each time it finishes reading the account, the connector records the balances Bitstamp reports for each asset: available, total and reserved, plus the Earn amounts when Earn is enabled. They sit next to the ledger's own balances for comparison. The connector never calculates a difference or posts an adjustment.
Each recorded balance keeps the precision Bitstamp reports it at, such as
EUR/2, and names the ledger asset it compares with, such as EUR/8. Bitstamp
reports fiat balances to the cent while the ledger keeps every digit of the
trades and fees behind them, so cut the ledger balance to Bitstamp's precision
before comparing. A ledger balance of 10.94239 euros matches a reported 10.94.
The first connection reads the account back to its first transaction. That goes further than the 30 days Bitstamp's API filters reach, and each movement is booked once however often Bitstamp returns it.
Optional live trade feed
The live feed is off by default. With STREAM=true, the connector also listens
to Bitstamp's live feed and books
a filled trade sooner. It still confirms every trade against Bitstamp's settled
history, and that history decides completeness, so a missed live message never
means a missed trade. Deposits, withdrawals and balances have no live feed and
appear with a short delay.
Not covered
- Derivatives. The
WITH_DERIVATIVESsetting exists and is off by default. It is outside the supported scope; leave it off. - Placing orders, withdrawals or transfers, closing positions, and changing Earn subscriptions.
- Open orders. An order appears once its fills settle. Funds held by an open order show only in the reserved balance Bitstamp reports.
- Sub-accounts the configuration does not name. Bitstamp offers no way to list them.
- Legacy staking and referral rewards, transfers that carry a fee, and activity types Bitstamp does not document. When the connector meets one, it pauses updates for that account until a later release supports it, instead of guessing how to book it.
- Deposit or withdrawal history beyond 200,000 records of each kind. Bitstamp's API stops there, and older records need an export from Bitstamp.
Setting up
API_KEY and API_SECRET are required. Use a read-only key, with read access
to Earn if you enable it. API_BASE_URL points at Bitstamp's production API by
default. CONN_ID names the account in the ledger and defaults to the user ID
the key belongs to.
Add each sub-account as a SUBACCOUNT entry in the form
id=<id>,key=<key>,secret=<secret>. Each sub-account needs its own API key,
because Bitstamp answers a main-account key with the main account's data.
INITIAL_LOOKBACK defaults to ten years and sets how far back a new connection
reads. Choose a start older than every deposit and withdrawal that is still
pending.
Updates
A later compatible release continues from the connector's saved progress and
changes only what it writes from then on. History already in the ledger is never
rewritten, backfilled or renamed. When a release changes the accounting profile,
the connector pauses until you confirm the change: deploy once with
CONNECTIVITY_ALLOW_PROFILE_CHANGE=true, wait for a successful fetch, then
remove the setting. If saved progress cannot be resumed, the connector stops
before contacting Bitstamp and says so. In that case, install a fresh connection
on a separate ledger and keep the previous one with its history.
Oct 16, 2026
Version 0.5.0 is the first release of the Bitstamp connector. It reads a Bitstamp account, and the sub-accounts you name, into Formance Ledger: deposits, withdrawals, trades, conversions, fees, Earn activity and the balances Bitstamp reports. The connector only reads. It never places an order, initiates a withdrawal or moves funds on Bitstamp.
How an account appears in the ledger
Each Bitstamp account you connect has two balances in the ledger. One holds fiat currencies and stablecoins, the other holds every other digital asset, and each carries all the assets of its kind. The connector books money that enters or leaves the account, fees included, against a counterparty account that stands for Bitstamp, so every movement has a named other side in the ledger.
Amounts are booked to at least eight decimal places. Bitstamp displays fiat balances to the cent but calculates trades and fees more finely, so the ledger keeps detail that Bitstamp's own figures leave out. The balances section below explains how to compare the two.
Deposits and withdrawals
The connector holds a digital-asset deposit apart from the balance while Bitstamp reports it pending, and moves it into the balance when Bitstamp reports it final. If Bitstamp reverts or rejects the deposit, the connector releases the held amount and keeps the deposit's status on the record. A deposit first seen already final reaches the same balance. Each deposit carries its chain transaction, network and receiving address.
Fiat bank deposits arrive already settled, and the connector credits them when Bitstamp records them.
A withdrawal sets its funds aside when it opens and sends them out when Bitstamp reports it finished. A canceled or failed withdrawal returns its funds to the balance. When Bitstamp charges a fee for a withdrawal, the connector books the fee as a separate movement next to the withdrawal.
Trades and fees
The connector books every settled spot trade in either direction, including instant buys and sells and conversions between fiat currencies and stablecoins. Each trade moves the asset sold out of the balance and the asset bought into it. The trading fee is a separate movement in the currency Bitstamp charged it in, which makes the cost of each fill visible. Fills without a fee are booked too.
Sub-accounts
Name a sub-account in the configuration and the connector reads it alongside the main account, with its own balances in the same ledger. A transfer to or from a sub-account is booked on the sub-account as money leaving or arriving. Bitstamp does not show these transfers in the main account's history, so the main account's side of a transfer is not booked. Its ledger balance differs from the balance Bitstamp reports by the amount of those transfers.
Bitstamp Earn
With WITH_EARN=true, the connector follows Bitstamp Earn on the main account.
A subscription moves the committed assets to their own Earn position, and an
unsubscription moves them back. Rewards are booked to a separate account, so
yield can be reported apart from principal.
Balances and history
Each time it finishes reading the account, the connector records the balances Bitstamp reports for each asset: available, total and reserved, plus the Earn amounts when Earn is enabled. They sit next to the ledger's own balances for comparison. The connector never calculates a difference or posts an adjustment.
Each recorded balance keeps the precision Bitstamp reports it at, such as
EUR/2, and names the ledger asset it compares with, such as EUR/8. Bitstamp
reports fiat balances to the cent while the ledger keeps every digit of the
trades and fees behind them, so cut the ledger balance to Bitstamp's precision
before comparing. A ledger balance of 10.94239 euros matches a reported 10.94.
The first connection reads the account back to its first transaction. That goes further than the 30 days Bitstamp's API filters reach, and each movement is booked once however often Bitstamp returns it.
Optional live trade feed
With STREAM=true, the connector also listens to Bitstamp's live feed and books
a filled trade sooner. It still confirms every trade against Bitstamp's settled
history, and that history decides completeness, so a missed live message never
means a missed trade. Deposits, withdrawals and balances have no live feed and
appear with a short delay.
Not covered
- Derivatives. The
WITH_DERIVATIVESsetting exists and is off by default. Its accounting has not yet been checked against Bitstamp data, so leave it off. - Placing orders, withdrawals or transfers, closing positions, and changing Earn subscriptions.
- Open orders. An order appears once its fills settle. Funds held by an open order show only in the reserved balance Bitstamp reports.
- Sub-accounts the configuration does not name. Bitstamp offers no way to list them.
- Legacy staking and referral rewards, transfers that carry a fee, and activity types Bitstamp does not document. When the connector meets one, it pauses updates for that account until a later release supports it, instead of guessing how to book it.
- Deposit or withdrawal history beyond 200,000 records of each kind. Bitstamp's API stops there, and older records need an export from Bitstamp.
Setting up
API_KEY and API_SECRET are required. Use a read-only key, with read access
to Earn if you enable it. API_BASE_URL points at Bitstamp's production API by
default. CONN_ID names the account in the ledger and defaults to the user ID
the key belongs to.
Add each sub-account as a SUBACCOUNT entry in the form
id=<id>,key=<key>,secret=<secret>. Each sub-account needs its own API key,
because Bitstamp answers a main-account key with the main account's data.
INITIAL_LOOKBACK defaults to ten years and sets how far back a new connection
reads. Choose a start older than every deposit and withdrawal that is still
pending.
The accounting profile uses stored Numscript version 1.0.5.
Updates
A later compatible release continues from the connector's saved progress and
changes only what it writes from then on. History already in the ledger is never
rewritten, backfilled or renamed. When a release changes the accounting profile,
the connector pauses until you confirm the change: deploy once with
CONNECTIVITY_ALLOW_PROFILE_CHANGE=true, wait for a successful fetch, then
remove the setting. If saved progress cannot be resumed, the connector stops
before contacting Bitstamp and says so. In that case, install a fresh connection
on a separate ledger and keep the previous one with its history.
Known limitations
Two booking paths have not yet been confirmed against a live Bitstamp account. Withdrawal fees are booked on the understanding that Bitstamp charges them on top of the withdrawn amount, and a real withdrawal still has to confirm it. Sub-account transfers have been tested only with sample data; a transfer that arrives with details Bitstamp has not documented pauses updates for that account. The optional live trade feed has not yet run against a live account.