From f77bdf19c307811d4659b6e85d147cdd5eee5ef3 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 3 Aug 2019 13:37:58 -0700 Subject: Add --averaged-lot-prices This joins together lots of the same underlying, averaging the reported price and using the date of the oldest lot. --- src/balance.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/balance.h') diff --git a/src/balance.h b/src/balance.h index bd373cb9..19b6bd84 100644 --- a/src/balance.h +++ b/src/balance.h @@ -603,6 +603,8 @@ inline std::ostream& operator<<(std::ostream& out, const balance_t& bal) { void put_balance(property_tree::ptree& pt, const balance_t& bal); +balance_t average_lot_prices(const balance_t& bal); + } // namespace ledger #endif // _BALANCE_H -- cgit v1.2.3