T-bills through Treasury Direct - How to Record?

2024-02-19 Thread CDT
What is the best way to post entries for t-bills? When you purchase a 30 day t-bill on Treasury Direct, you purchase at a discount, so if it's $1100 face value bill, and the interest rate is 5.4%, you get a 5.4% ($4.53) discount and only pay $1,095.47. In 30 days the face value is $1100. So ho

Re: T-bills through Treasury Direct - How to Record?

2024-02-19 Thread Martin Blais
I have a bunch of these now too, I haven't converted to Beancount yet, but I think it'll be straightforward. I think there is a choice to make about whether you want to - just account for the cash flows (which should be really easy, book as a new commodity with a price that begins at what you paid

Re: How to transfer commodities between currencies?

2024-02-19 Thread Martin Blais
It depends. What happens to your unrealized gain? Does this trigger a realization and stepping up of cost-basis? Or do you carry the unrealized gain to CAD? On Sun, Feb 18, 2024 at 10:11 PM Matt McCormick wrote: > Some commodities trade on multiple stock exchanges and can be exchanged. > How ca

Re: How to transfer commodities between currencies?

2024-02-19 Thread Martin Blais
(But to the straightforward question is: yes, it can.) On Mon, Feb 19, 2024 at 9:08 AM Martin Blais wrote: > It depends. > What happens to your unrealized gain? > Does this trigger a realization and stepping up of cost-basis? Or do you > carry the unrealized gain to CAD? > > > On Sun, Feb 18, 20

Re: How to transfer commodities between currencies?

2024-02-19 Thread Martin Blais
It helps to think of it as all the steps that would be taken by your broker. Say on a transfer you realize the gains: plugin "beancount.plugins.auto" 2024-01-01 * "Add cash" Income:Misc Assets:CA:Brokerage:USAccount:Cash 1000.00 USD 2024-01-01 * "Buy BMO in US" Assets:CA:Brokerage:USAcco

Importer.extract() raised an unexpected error: can't compare datetime.datetime to datetime.date

2024-02-19 Thread Marcio A. Vianna F. (mvianna)
Hi, I'm taking up beancount again after some 2 years away from it. My biggest difficulty had then been importing bank and brokers' statements to beancount. I was getting the best results with (modified) reds_importers + smart_importer, which came to work reasonably well. But I'm realizing that

Re: Importer.extract() raised an unexpected error: can't compare datetime.datetime to datetime.date

2024-02-19 Thread Red S
Hello there, A few observations: 1. AFAIK, Beancount doesn’t support timestamps . Please correct me if this is out of date. 2. With the change you made to ofxreader

Re: Importer.extract() raised an unexpected error: can't compare datetime.datetime to datetime.date

2024-02-19 Thread Marcio A. Vianna F. (mvianna)
Many thanks for your response. My comments are below: 1. AFAIK, Beancount doesn’t support timestamps . Please correct me if this is out of date. I think you are right.

Re: Importer.extract() raised an unexpected error: can't compare datetime.datetime to datetime.date

2024-02-19 Thread Red S
The funny thing is that the error message actually disappeared (from reds_importers modules) after I made the change (and re-emerged in smart_importer modules). I thought: if instead of a date, I input a datetime in the beancount file, python won't complain anymore, since it will be comparing

Re: How to transfer commodities between currencies?

2024-02-19 Thread Matt McCormick
Thanks this is helpful. I guess I was thinking that the gains would not be realized until the commodity was sold. But I supposed it at least makes it easier to realize the gains when exchanging. I was trying to think of a way to transfer the original cost basis, with it being converted someho