Costflow is a series of products for making plain text accounting easier, including
Self-hosted Costflow Hub, which let you keep accounting anytime, anywhere.
Costflow Syntax is the rule for parsing plain text to the accounting tools formats, such as Beancount, Ledger and hledger, etc.
Beancount is the only supported output format in current version.
- Simple transaction syntax.
- Account name replacements. E.g. bofa in your message will be replaced with Assets:US:BofA:Checking.
- Formula, make creating transactions with patterns easier, for sure.
- Get real time price for exchanging rate or stock, even cryptocurrency.
- Optional date input, the default value is "today" in your timezone.
- Optional Currency/Commodity code.
- Custom indent and line length.
- Insert time info to transactions.
The 'command' is the first word/symbol of the texts (exclude date). Some commands are same with 'directives' in Beancount.
|*||Completed transaction. Optional.|
|f||Formula. Added in v0.3. For transactions with patterns.|
|//||Comment. The behavior of two comment symbols might be different (based on products' logic).|
|$||Get the latest exchange rate between currencies or price of cryptocurrencies or stocks. It will not be saved to your ledger file, just return the result.|
|Fallback rules||If no command found and|
If the first word is one of formula keywords, the command will be
If message contains numbers, then the command will be
Otherwise, the command will fall back to
The date is optional. If no YYYY-MM-DD format date found, the date will be 'today' in your timezone. Use '2019-07-01' in the following examples. Start from v0.2, we support more date formats:
- Month name: Jul 25 / July 10 / Aug 2. The month name can be full name or three-letter abbreviations, the first letter should be uppercase.
- Relative dates:
- The day before yesterday:
tmr, useful for Balance command.
- The day after tomorrow:
Commodity/Currency code is optional, too, the default value is what you set before. Use 'USD' in following examples.
Metadata is not supported in this version.
Inline comment is not supported in this version.
Commodity/Currency should be a word all in capital letters.
The abbreviation of an account name should be a word all in lowercase letters or numbers.
If the transaction is
2019-07-01 * "McDonald's" "🍔", and the insertTime is
metadata, the time info will be applied like:2019-07-01 * "McDonald's" "🍔"time: "11:22:33"...