Script for Bank of Canada Prices

2021-12-12 Thread Ben L
I wrote a python script to get the daily USD/CAD current exchange rate from the Bank of Canada and output it into a .beancount file that can be include in my main file. I need this to properly report transactions to the CRA using the CAD value at the date of the transaction and maybe this will b

Question about @ vs. {}

2021-12-12 Thread Pranesh Prakash
Hi, I'm trying to think through implementation of lots and various cost bases in PTA,[1] and thought I would check with this mailing list. Specifically, I'm wondering whether the @ vs. {} difference in Beancount can be collapsed to the difference between average cost basis (ACB), with gains/l

Re: Question about @ vs. {}

2021-12-12 Thread Martin Blais
For currencies (@), the cost basis is forgotten in the lot that's inserted or matched to the account's inventory. For investments ({}), the cost basis is attached to the lot inserted or matched to the account's inventory. If you were a currency trader, you wouldn't buy/sell currencies and track it