transactions
Combine, categorize, dedupe and query all your transactions.
Sources
Transaction source directory should contain exported transactions in the form <source>-[...]
.
Supported sources
CLI
Commands:
inspect Inspect transactions.
query [sql] Query transactions.
Global Options:
--help Show help [boolean]
--version Show version number [boolean]
--verbose Run with verbose logging. [boolean]
--dir Specify transaction source.
[string] [required] [default: "transactions"]
--matchfile Specify matchfile.[string] [required] [default: "matchfile.json"]
`inspect` Options:
--tags Print the calculated tag tree. [boolean]
--dedupe Dedupe transactions going back N days. Use -1 to dedupe all
transactions. [number]
`query` Options:
--total Print total of queried transactions. [boolean]
Query Schema
id TEXT -- Arbitrary random ID.
date TEXT -- Date in ISO format (YYYY-MM-DD).
description TEXT -- Transaction description.
amount REAL -- Transaction amount relative to self.
tags TEXT -- Transaction tags (comma separated)
_original TEXT -- Original unstructured transaction line.
Example Queries
Basic
SELECT * FROM transactions
Filters
WHERE tags LIKE '%income%'
WHERE description LIKE '%market%'
WHERE date >= '2021-01-01' AND date < '2021-02-01'
Sum
SELECT SUM(amount)