خلاصه
Crypto Trader Example — beancount.io
A comprehensive Beancount ledger demonstrating every major cryptocurrency accounting scenario: purchases, trading, staking, mining, DeFi, NFTs, and tax planning. یادداشتهای دفتر
وضعیت مالی
ارزش خالص و حسابهای تشکیلدهنده آن
گردش پول
درآمد و هزینه ماهانه بر اساس دسته حساب
سپتامبر ۲۰۲۶
فعالیت اخیر
فعالیت دفتر روزنامه با درنظرگرفتن ثبتها
تراکنشها
جدیدترین تراکنشهای مطابق فیلترهای فعلی
درآمد در مقابل هزینهها
درآمد در مقابل هزینهها
نمودار میلهای مقایسه مجموع درآمد و هزینهها برای هر بازه در دوره انتخابی.
دادههای دورهای
| دوره | درآمد | هزینهها | سود خالص |
|---|---|---|---|
| 2025-02-28 | ۰٫۰۰ USD | ۱۲۶٫۹۳ USD | −۱۲۶٫۹۳ USD |
| 2025-03-31 | ۳۲۹٫۸۷ USD | ۲۷۴٫۸۱ USD | ۵۵٫۰۶ USD |
| 2025-04-30 | ۳۷۷٫۵۴ USD | ۱۷۹٫۳۱ USD | ۱۹۸٫۲۳ USD |
| 2025-05-31 | ۴۲۰٫۰۰ USD | ۱۷۵٫۶۰ USD | ۲۴۴٫۴۰ USD |
| 2025-06-30 | ۴۲۸٫۳۲ USD | ۱٬۳۸۳٫۳۵ USD | −۹۵۵٫۰۳ USD |
| 2025-07-31 | ۴۶۳٫۰۰ USD | ۱۸۵٫۴۰ USD | ۲۷۷٫۶۰ USD |
| 2025-08-31 | ۴٬۳۰۳٫۲۳ USD | ۱۸۹٫۵۰ USD | ۴٬۱۱۳٫۷۳ USD |
| 2025-09-30 | ۸٬۱۴۷٫۰۵ USD | ۱۹۵٫۰۰ USD | ۷٬۹۵۲٫۰۵ USD |
| 2025-10-31 | ۵٬۸۴۴٫۴۵ USD | ۲۱۹٫۴۶ USD | ۵٬۶۲۴٫۹۹ USD |
| 2025-11-30 | ۳۷۶٫۸۱ USD | ۱۷۸٫۰۰ USD | ۱۹۸٫۸۱ USD |
| 2025-12-31 | ۱٬۸۶۹٫۴۴ USD | ۳٬۹۱۷٫۸۵ USD | −۲٬۰۴۸٫۴۱ USD |
| 2026-01-31 | ۳۶۰٫۵۷ USD | ۲۵۲٫۲۵ USD | ۱۰۸٫۳۲ USD |
| 2026-02-28 | ۲۷۹٫۹۶ USD | ۳٬۱۳۲٫۵۰ USD | −۲٬۸۵۲٫۵۴ USD |
| 2026-03-31 | ۵۰۷٫۴۲ USD | ۱۹۲٫۰۰ USD | ۳۱۵٫۴۲ USD |
| 2026-04-30 | ۱٬۴۲۳٫۸۲ USD | ۲۱۴٫۲۱ USD | ۱٬۲۰۹٫۶۱ USD |
| 2026-05-31 | ۳۰۴٫۴۱ USD | ۶٬۴۰۰٫۹۰ USD | −۶٬۰۹۶٫۴۹ USD |
| 2026-06-30 | ۱٬۶۱۴٫۱۳ USD | ۴٬۶۱۲٫۷۸ USD | −۲٬۹۹۸٫۶۵ USD |
| 2026-07-31 | ۲۷۱٫۱۵ USD | ۱۹۸٫۰۰ USD | ۷۳٫۱۵ USD |
| 2026-08-31 | ۳٬۴۷۷٫۰۷ USD | ۲۰۴٫۹۱ USD | ۳٬۲۷۲٫۱۶ USD |
| 2026-09-30 | ۸۵۱٫۰۸ USD | ۱۱٫۳۵ USD | ۸۳۹٫۷۳ USD |
ترازنامه
توزیع داراییها
نمایش بصری از ترکیب داراییهای Crypto Trader Example — beancount.io
جزئیات
| حساب | مبلغ | سهم از کل |
|---|---|---|
| Assets:Staking:Lido:STETH | ۲٬۴۹۵٫۶۸ USD | ۱٫۳۱% |
| Assets:Staking:Ethereum:ETH | ۳٬۸۲۲٫۵۹ USD | ۲% |
| Assets:DeFi:Compound:CUSDC | ۵٬۸۴۳٫۳۵ USD | ۳٫۰۶% |
| Assets:Crypto:Wallet:MetaMask:USDC | ۳٬۹۶۵٫۸۸ USD | ۲٫۰۸% |
| Assets:Crypto:Wallet:MetaMask:UNI | ۳٬۷۹۵٫۶۰ USD | ۱٫۹۹% |
| Assets:Crypto:Wallet:MetaMask:ETH | ۸٬۴۰۵٫۲۳ USD | ۴٫۴۱% |
| Assets:Crypto:Wallet:MetaMask:DAI | ۱٬۹۹۹٫۵۴ USD | ۱٫۰۵% |
| Assets:Crypto:Wallet:Ledger:BTC | ۹٬۶۵۰٫۷۷ USD | ۵٫۰۶% |
| Assets:Crypto:Mining:BTC | ۶٬۳۷۱٫۴۵ USD | ۳٫۳۴% |
| Assets:Crypto:Coinbase:USD | ۳۸٬۳۱۳٫۶۹ USD | ۲۰٫۰۹% |
| Assets:Crypto:Coinbase:BTC | ۱۳٬۸۶۳٫۷۸ USD | ۷٫۲۷% |
| Assets:Crypto:Binance:USDT | ۱٬۹۹۶٫۲۰ USD | ۱٫۰۵% |
| Assets:Crypto:Binance:USD | ۵٬۶۷۵٫۸۹ USD | ۲٫۹۸% |
| Assets:Crypto:Binance:SOL | ۹٬۷۴۲٫۲۰ USD | ۵٫۱۱% |
| Assets:Crypto:Binance:ADA | ۲٬۲۹۷٫۶۰ USD | ۱٫۲% |
| Assets:Bank:Checking | ۶۸٬۰۳۳٫۰۰ USD | ۳۵٫۶۸% |
| سایر | ۴٬۴۰۰٫۸۵ USD | ۲٫۳۱% |
توزیع بدهیها
نمایش بصری از ترکیب بدهیهای Crypto Trader Example — beancount.io
دادهای موجود نیست
جریان نقدینگی
جریان نقدینگی
جریان پول از منابع درآمد به هزینهها و سرمایهگذاریها
در حال بارگذاری نقش حسابها…
README.md
Crypto Accounting Example — beancount.io
A comprehensive Beancount ledger demonstrating every major cryptocurrency accounting scenario: purchases, trading, staking, mining, DeFi, NFTs, and tax planning.
Companion blog post: Complete Guide to Cryptocurrency Accounting with Beancount
Quick Start
bash
make install # Install beancount + fava via uv
make check # Verify the ledger has zero errors
make serve # Open Fava at http://localhost:4739File Guide
| File | What it demonstrates |
|---|---|
main.bean | Entry point — options, plugins, and include directives |
accounts.bean | All commodity definitions and account chart |
prices/2024.bean | Monthly price directives for BTC, ETH, SOL, ADA, and DeFi tokens |
transactions/purchases.bean | Buying crypto: simple buys, DCA strategy, stablecoins |
transactions/trading.bean | Sales with short/long-term gains, crypto-to-crypto swaps, margin trading |
transactions/staking.bean | ETH 2.0 staking, monthly rewards, Lido liquid staking (stETH) |
transactions/mining.bean | BTC mining rewards, electricity costs, equipment depreciation |
transactions/defi-lending.bean | Compound supply/yield, COMP rewards, Aave deposit/borrow/repay |
transactions/defi-liquidity.bean | Uniswap LP provision, fee income, impermanent loss |
transactions/transfers.bean | Exchange-to-wallet transfers, cross-chain bridging |
transactions/airdrops.bean | UNI and SOL airdrop income |
transactions/nfts.bean | NFT purchase with ETH, NFT sale with capital gain |
transactions/tax-planning.bean | Tax loss harvesting, wash sale awareness, year-end balance assertions |
Key Concepts Demonstrated
- Cost basis tracking — every purchase creates a lot with date and price
- FIFO & specific lot identification — choosing which lot to dispose of
- Taxable dispositions — selling for fiat, crypto-to-crypto swaps, spending crypto
- Ordinary income — mining rewards, staking rewards, airdrops (all at FMV)
- DeFi receipt tokens — cUSDC, aETH, stETH, LP tokens as accounting proxies
- Gas fees — tracked as expenses, deducted from proceeds where appropriate
- Balance assertions — year-end reconciliation checks
- Short-term vs long-term — separate income accounts for tax reporting
Useful Commands
bash
make balances # Show all account balances
make holdings # Show holdings with market values
make income # Show income statement
make check # Verify ledger integrity