summaryrefslogtreecommitdiff
path: root/src/balance.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2019-08-03 13:37:58 -0700
committerJohn Wiegley <johnw@newartisans.com>2019-12-06 14:06:22 +0100
commitf77bdf19c307811d4659b6e85d147cdd5eee5ef3 (patch)
tree7a3dcae3901cb1543feed902dce256cf3b751d69 /src/balance.h
parent6a140f313433e4ac21882d7995dbbb56124b4079 (diff)
downloadfork-ledger-f77bdf19c307811d4659b6e85d147cdd5eee5ef3.tar.gz
fork-ledger-f77bdf19c307811d4659b6e85d147cdd5eee5ef3.tar.bz2
fork-ledger-f77bdf19c307811d4659b6e85d147cdd5eee5ef3.zip
Add --averaged-lot-prices
This joins together lots of the same underlying, averaging the reported price and using the date of the oldest lot.
Diffstat (limited to 'src/balance.h')
-rw-r--r--src/balance.h2
1 files changed, 2 insertions, 0 deletions
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