Also, ledger can format output as Elisp sexp (with emacs command). That should be easier to parse. Best, Ihor