개요

crypto-example의 재무 대시보드. 계좌 잔액, 순자산 트렌드, 수입/지출 요약을 볼 수 있습니다.

자산
114581.88 USD
부채
0
수입
-17519.09 USD
지출
2937.21 USD
자산 분포
crypto-example 자산 구성의 시각적 표현
부채 분포
crypto-example 부채 구성의 시각적 표현
Chart is empty.
현금 흐름
수입원에서 지출 및 투자로의 자금 흐름
수입 대 지출
선택한 기간의 각 구간별 총 수입과 지출을 비교하는 막대 차트.
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:4739

File Guide

FileWhat it demonstrates
main.beanEntry point — options, plugins, and include directives
accounts.beanAll commodity definitions and account chart
prices/2024.beanMonthly price directives for BTC, ETH, SOL, ADA, and DeFi tokens
transactions/purchases.beanBuying crypto: simple buys, DCA strategy, stablecoins
transactions/trading.beanSales with short/long-term gains, crypto-to-crypto swaps, margin trading
transactions/staking.beanETH 2.0 staking, monthly rewards, Lido liquid staking (stETH)
transactions/mining.beanBTC mining rewards, electricity costs, equipment depreciation
transactions/defi-lending.beanCompound supply/yield, COMP rewards, Aave deposit/borrow/repay
transactions/defi-liquidity.beanUniswap LP provision, fee income, impermanent loss
transactions/transfers.beanExchange-to-wallet transfers, cross-chain bridging
transactions/airdrops.beanUNI and SOL airdrop income
transactions/nfts.beanNFT purchase with ETH, NFT sale with capital gain
transactions/tax-planning.beanTax 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