I'm trying to use beancount to help manage Canadian style average costing.
The rules say that interchangeable units all contribute to the same
average cost, regardless of where they are bought or sold.
For example, let's say you buy BTC from 2 exchanges and wish to
record this in beancount in such a way as to make it easy to track
balances at each exchange, and easy to calculate average cost for all
your BTC when the time comes.
I imagine the open statements would be something like this:
... Assets:Crypto:BTC BTC "NONE"
... Assets:Crypto:BTC:Kraken BTC "NONE"
... Assets:Crypto:BTC:Coinbase BTC "NONE"
Using tools like fava and query, it's easy to get a report for each
subaccount, or the parent total account.
Unfortunately, the check_average_cost plugin only looks at the accounts
individually. Anything I sell in the Coinbase subaccount will not
pick up the costs from the BTC or BTC:Kraken accounts. Indeed,
anything I sell in the parent BTC account won't see costs in the
subaccounts either.
The python code looks simple enough, but I'm stuck at how best to handle
the different accounts.
Any coding and/or bookkeeping tips are welcome!
Thanks,
- Chris
--
You received this message because you are subscribed to the Google Groups
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/beancount/acOThKs7QhI2G28l%40foursquare.net.