Re: bean-price --update feature

2021-01-16 Thread vive...@gmail.com
Thanks for the update. I think dropping bean-report & bean-web was intentional as the fava project has taken over those needs, there's a discussion about that here: https://groups.google.com/g/beancount/c/pAQqGwgC4NI/m/VQ7clBSVAQAJ

Re: bean-price --update feature

2021-01-16 Thread Ghanashyam Prabhu
Thanks Vivek for the details. I used the bean-price --update btc-price.beancount and it works well As a reference I also want to update the btc-price.beancount file contents here. ; -*- mode: org; mode: beancount; coding: utf-8; fill-column: 120 > * Options > option "title" "crypto pf ledger" >

Re: bean-price --update feature

2021-01-10 Thread vive...@gmail.com
>Can you point me to this documentation that describes the behavior of the bean-price utility? The best documentation at the moment specifically on bean-price --update is the code itself. There's two core parts of interest within beanprice/price.py

Re: bean-price --update feature

2021-01-10 Thread Ghanashyam Prabhu
And yes I mean to say --date here, was a typo > bean-price --update --update-rate daily --data 2020-10-26 -e > USD:coinbase/BTC-USD On Sun, 10 Jan 2021 at 20:23, Ghanashyam Prabhu wrote: > Hi Vivek, I am currently exploring beancount to track an investment > portfolio. In this example, I

Re: bean-price --update feature

2021-01-10 Thread Ghanashyam Prabhu
Hi Vivek, I am currently exploring beancount to track an investment portfolio. In this example, I want to track buy/sell transactions of BTC from Coinbase. I exactly do not understand the various switches that beanprice utility provides. I plan to use bean price to populate a prices.db file which

Re: bean-price --update feature

2021-01-10 Thread vive...@gmail.com
I'll be honest I haven't had time to use beancount or run the latest, but looking briefly at the code there's a few things that comes to mind: - I wasn't expecting one to use the --update feature without a beancount file (i.e. how you're using -e). --update was really meant for a

Re: bean-price --update feature

2021-01-10 Thread Ghanashyam Prabhu
Apologies for the trivial question. I re-installed the latest beancount and beanprice from the repository using sudo pip3 install git+https://github.com/beancount/beancount#egg=beancount sudo pip3 install git+https://github.com/beancount/beanprice#egg=beanprice With this I do see --update-rate

Re: bean-price --update feature

2020-12-20 Thread Martin Blais
Merged. beancount (master): https://github.com/beancount/beancount/commit/00c0b71fb03c074be08ad10f709c9b6f7e99aa70 beanprice: https://github.com/beancount/beanprice/commit/f1bcfea1c217c460ef419e05aa7b9ab2dff0bab2 On Sun, Dec 20, 2020 at 1:42 PM vive...@gmail.com wrote: > Thanks Martin! >

Re: bean-price --update feature

2020-12-20 Thread vive...@gmail.com
Thanks Martin! On Sunday, December 20, 2020 at 10:31:52 AM UTC-8 bl...@furius.ca wrote: > Had a quick look; updating the branch in v2 isn't trivial (I deleted and > revived beanprice during the move by accident). > I'll merge manually the changes to ops/lifetimes.py and create a new > change

Re: bean-price --update feature

2020-12-20 Thread Martin Blais
Had a quick look; updating the branch in v2 isn't trivial (I deleted and revived beanprice during the move by accident). I'll merge manually the changes to ops/lifetimes.py and create a new change in the new repo. On Sun, Dec 20, 2020 at 1:20 PM Martin Blais wrote: > Vivek, the repository has

Re: bean-price --update feature

2020-12-20 Thread Martin Blais
Vivek, the repository has moved to https://github.com/beancount/beanprice Would you like to resubmit it there? On Sun, Dec 20, 2020 at 12:48 PM vive...@gmail.com wrote: > Hi Ghanashyam, > Yes, during the migration from bitbucket to github Martin Blais moved it > to >

Re: bean-price --update feature

2020-12-20 Thread vive...@gmail.com
Hi Ghanashyam, Yes, during the migration from bitbucket to github Martin Blais moved it to https://github.com/beancount/beancount/tree/pr128_seltzered_beanpriceupdate . It hasn't been reviewed/accepted yet, but perhaps it could be updated so it's easier to consider again. I haven't had time to

Re: bean-price --update feature

2020-12-19 Thread Ghanashyam Prabhu
Hi Vivek, Do you have this update? The bitbucket link is not available anymore. Curious if this feature was ever reviewed and accepted, seems like a very good feature On Sunday, 19 January 2020 at 21:33:06 UTC-8 vive...@gmail.com wrote: > Hi Andrzej! Nice to hear you're interested in the price

Re: bean-price --update feature

2020-01-21 Thread Andrzej Kotulski
Thank you, script was useful to me. It was painfully slow to import 2 years of prices (partially due to inefficient price source implementation), but from now on I should run this more frequently so it should be fine. On 20/01/2020 03:46, Justus Pendleton wrote: On Monday, January 20, 2020

Re: bean-price --update feature

2020-01-19 Thread Vivek Gani
Hi Andrzej! Nice to hear you're interested in the price update feature. There was some discussion between me and Johannes Harms late last year in a related issue ( https://bitbucket.org/blais/beancount/issues/329/bean-price-support-fetch-over-range-of ) We may want to continue discussion

Re: bean-price --update feature

2020-01-19 Thread Justus Pendleton
On Monday, January 20, 2020 at 5:14:13 AM UTC+7, Andrzej wrote: > Alternatively, does anyone know if there a tool that does something > similar but is outside of beancount main repository? (I'm not a fan of > maintaining my own fork of beancount for this patch) > Vivek mentioned in his

Re: bean-price --update feature

2020-01-19 Thread Andrzej
Hi, this would be very useful to me, unfortunately it seems to be waiting for review/merge. What's the status? Is there anything I could do to help? Alternatively, does anyone know if there a tool that does something similar but is outside of beancount main repository? (I'm not a fan of

Re: bean-price --update feature

2019-09-21 Thread Vivek Gani
Will need to double check, but I believe that case should only happen if you use update with the —inactive option AND have a commodity that has never been held. -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and

Re: bean-price --update feature

2019-09-21 Thread justus
Vivek, This looks interesting. The one thing I note is that it is based on the "commodity lifetime". Does that mean that start date is the date used when the commodity is defined? So if I define a commodity as 1976-08-31 commodity VFINX then it will try to fetch every daily price from 1976 up

bean-price --update feature

2019-09-15 Thread Vivek Gani
Hi, I've tried extending bean-price to have a --update option which can be found at https://bitbucket.org/seltzered/beancount/branch/bean-price-update . Essentially it will look at commodity lifetimes and the last fetched price to fetch up to (but not including) the present date. The