Bitcoin xPub Wallet Tracking
Bitcoin xPub tracking gives the most accurate PnL of any source in FinCobra. Because the blockchain contains your complete transaction history, the system can calculate your exact all-time cost basis.
How to Connect
Export your extended public key from your hardware wallet (Ledger, Trezor, etc.) or software wallet. FinCobra supports:
| Key Type | Format | Address Type |
|---|---|---|
| xpub | BIP-44 | Legacy (1...) |
| ypub | BIP-49 | Nested SegWit (3...) |
| zpub | BIP-84 | Native SegWit (bc1q...) |
The connection is read-only — an extended public key can only derive addresses and view balances. It cannot sign transactions or move funds.
How PnL Works
Bitcoin xPub uses the full-history PnL model:
initialValue = 0(the wallet started empty)- Every receive transaction = deposit
- Every send transaction = withdrawal
- USD values are backfilled from historical BTC daily prices
This means the adjusted PnL formula captures your all-time profit and loss — from the very first transaction to today.
USD Price Backfill
Historical USD values for each transaction are sourced from Binance daily kline (candlestick) data and cached in a local asset_price_daily table. This ensures consistent pricing even for transactions that happened years ago.
Address Derivation
FinCobra uses Electrum to derive addresses from your extended public key following BIP-44/49/84 derivation paths. The system scans both the receiving and change address chains to find all transactions associated with your wallet.
What Makes This the Most Accurate Source
| Advantage | Why |
|---|---|
| Complete history | Blockchain has every transaction since the wallet was created |
| Zero initial value | No baseline estimation — the wallet started at 0 BTC |
| All flows captured | Every receive and send is a real deposit/withdrawal |
| Historical prices | Daily BTC prices fill in USD values for old transactions |
For other sources like EVM wallets, the system can only track flows that happen after you add the account. Bitcoin xPub has no such limitation.