跳到主要内容

概览

Example Beancount file

A comprehensive, self-contained personal-finance ledger demonstrating everyday Beancount usage: banking, credit cards, employer payroll and benefits, taxes, and multi-asset investing — generated with Beancount's own bean-example tool. Pa… 账本备注

财务状况

净资产及其组成账户

净值
过去 12 个月的资产与负债之和
117,649.488 USD-13 VACHR
+2,191.507 USD较上月

成本 106,826.049 USD · 浮动盈亏 +10,823.439 USD

账户
当前资产和负债账户余额

资金流动

按账户类别显示每月收入和支出

2017年9月
资金流入
2017年9月
+4,639.7 USD+5 VACHR
主要来源
最多前 3 个期间的平均值
+11,939.32 USD+11.67 VACHR
查看全部
资金流出
2017年9月
-2,284.81 USD
主要支出
最多前 3 个期间的平均值
-8,188.02 USD-2,166.67 IRAUSD-42.67 VACHR
查看全部

近期活动

考虑分录的账本活动

交易记录
符合当前筛选条件的最新交易

收入与支出

收入与支出
在选定时期内每个区间的总收入和支出对比的柱状图。

金额以 USD 显示。IRAUSD, VACHR 的余额未包含在内。

资产负债表

资产分布
Example Beancount file资产构成的可视化表示

金额以 USD 显示。VACHR 的余额未包含在内。

负债分布
Example Beancount file负债构成的可视化表示

现金流

现金流
资金从收入来源流向支出和投资

正在加载账户角色…

README.md

Beancount Example Ledger

A comprehensive, self-contained personal-finance ledger demonstrating everyday Beancount usage: banking, credit cards, employer payroll and benefits, taxes, and multi-asset investing — generated with Beancount's own bean-example tool. Part of the Open Ledger project on beancount.io, which also publishes real public-company financial ledgers reconstructed from SEC/regulatory filings.

Quick Start

bash
uvx --from beancount bean-check main.bean

Zero output means the ledger is internally consistent — every transaction balances to zero.

What's Inside

main.bean spans January 2015 through September 2017 for a single simulated household, covering:

  • Banking — checking/savings accounts, monthly fees, interest income
  • Credit cards — recurring spend categories (dining, shopping, travel, utilities, etc.)
  • Employer — paycheck deposits, employer 401(k)/IRA contributions, vacation-hour accrual
  • Taxes — payroll tax withholding
  • Investing — commodity/price directives for ETFs and mutual funds (index funds, bond funds, gold, sector funds), with cost-basis tracking

This is the same demo content Beancount's documentation uses to teach double-entry plain-text accounting from first principles — useful as a reference for account naming, price directives, and everyday transaction patterns before modeling something more specialized (a company, a crypto portfolio, a real-estate holding).

About Open Ledger

This repository is part of a growing library of ledgers published at beancount.io/ledger — plain-text, git-versioned, and fully auditable, spanning both general-purpose examples like this one and real public-company financial histories reconstructed from their own filings. Read more on the beancount.io blog.