Beancount Syntax Cheat Sheet
Example Account Name: Assets:US:BofA:Checking
Directives
Opening & Closing Accounts2001-05-29 open Expenses:Restaurant 2001-05-29 open Assets:Checking USD,EUR ; Currency constraints 2015-04-23 close Assets:Checking Declaring CommoditiesThis is optional; use this only if you want to attach metadata by currency. 1998-07-22 commodity AAPL PricesUse many times to fill historical price database: 2015-04-30 price AAPL 125.15 USD 2015-05-30 price AAPL 130.28 USD Notes2013-03-20 note Assets:Checking "Called to ask about rebate" Documents2013-03-20 document Assets:Checking "path/to/statement.pdf" | Transactions2015-05-30 * "Some narration about this transaction" 2015-05-30 ! "Cable Co" "Phone Bill" #tag ˆlink id: "TW378743437" ; Meta-data Postings... 123.45 USD Simple ... 10 GOOG {502.12 # 9.95 USD} With both costs Balance Assertions and PaddingAsserts the amount for only the given currency: 2015-06-01 balance Liabilities:CreditCard -634.30 USD Automatic insertion of transaction to fulfill the following assertion: YYYY-MM-DD pad Assets:Checking Equity:Opening-Balances EventsYYYY-MM-DD event "location" "New York, USA" Optionsoption "title" "My Personal Ledger" See this doc for the full list of supported options. Otherpushtag #trip-to-peru ... poptag #trip-to-peru ; Comments begin with a semi-colon |