* lipp f <[email protected]> [2023-06-23 05:54]: > "ledger bal --gain" returns all gains since inception but I would like to > get the gains for last week only. > > I'm trying > ledger bal --gain -p "last 7 days" > but it does not return anything.
I don't think --gain can be used for this. However, what should be possible is to value your holding on day 1 and then on day 2 and calculate the difference (manually). e.g. ledger -p "until 2023-01-01" --price-db pricedb/funds.pricedb -V --now 2022-12-31 I think you need both -p and --now -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/20230623153504.GA823193%40jirafa.cyrius.com.
