Re: Help a Beginner with Red's CSV Importer?

2023-12-08 Thread Red S
Hello there, Author here. Given how simple your csv file is, I’d suggest using Beancount’s built in csv importer . Something like this in your my.import file (untested): csv.Importer({Col.DATE

Re: Help a Beginner with Red's CSV Importer?

2023-12-08 Thread Red S
Argh, don’t have my laptop now, so this is hard, but with the init function, the right hand fields in the dictionary are internal, and fixed. The left hand side corresponds to your csv file. Date,Description,Amount,Unapplied,Balance def custom_init(self): self.max_rounding_error = 0.04 self.f

Re: bean-price with yahoo reporting invalid currency

2023-12-08 Thread kunagu varun kumar
Awesome. Thanks for this On Tuesday, December 5, 2023 at 1:58:54 AM UTC-6 chrisb...@gmail.com wrote: > ...and without repeating Friday prices for weekend days: >> > > leaving out "--update-rate daily" will do that in bean-price: > > bean-price input.beancount --update --inactive --clear-cache >

Re: Help a Beginner with Red's CSV Importer?

2023-12-08 Thread Chris Bond
Thanks! Will test this out. On Friday, December 8, 2023 at 3:33:44 AM UTC-5 Red S wrote: > Argh, don’t have my laptop now, so this is hard, but with the init > function, the right hand fields in the dictionary are internal, and fixed. > The left hand side corresponds to your csv file. > > Date,

Re: Dealing with futures

2023-12-08 Thread Dan Andersson
I think I can get a fully customizable experience by using "NONE" and zero cost basis. Please critique this: ;-- 2014-05-20 open Assets:Futures:GOLD-DEC-24 GOLD-DEC-24 "NONE" 2014-05-20 open Assets:Citibank:Cash USD 2014-05-20 open Income:CapitalGains USD 2014-05-20 open Expenses:CapitalL

Re: Dealing with futures

2023-12-08 Thread Dan Andersson
I just found another approach: https://groups.google.com/g/beancount/c/OIjyBo-Ehu0/m/b3ujN_oMAQAJ If I understand correctly, he simply has a phantom account that offsets the initial notional value and track only PnL afterwards. This phantom account offers a nice hack to deal with futures. Howev

Re: Dealing with futures

2023-12-08 Thread Martin Blais
Sorry for the late reply, I've been busy. Yeah, maybe I shouldn't have called it "margin," it's inaccurate. In particular, this method doesn't actually track the margin usage (which seems unnecessary). Maybe it should be some Equity account. There's some other discussion about futures contracts h

Re: Help a Beginner with Red's CSV Importer?

2023-12-08 Thread fin
Chris Bond wrote: > --=_Part_10662_427767134.1701975257612 > Content-Type: multipart/alternative; > boundary="=_Part_10663_1945899272.1701975257612" > > --=_Part_10663_1945899272.1701975257612 > Content-Type: text/plain; charset="UTF-8" > > I have what I think may be a very simp