pricehist: an alternative price fetcher

2021-08-20 Thread Chris Berkhout
Hi Beancount people, I've released a command-line tool that can fetch daily historical prices from multiple sources and output them in several formats, including as Beancount price directives. https://gitlab.com/chrisberkhout/pricehist It makes some different design choices than bean-price. I

Re: pricehist: an alternative price fetcher

2021-08-23 Thread Chris Berkhout
Thanks Martin! On Sat, Aug 21, 2021, 19:25 Martin Blais wrote: > This is great! > Thanks for sharing. > I've added a link to the contributions doc. > > > On Fri, Aug 20, 2021 at 1:13 PM Chris Berkhout > wrote: > >> Hi Beancount people, >> >> I

Re: Script for Bank of Canada Prices

2021-12-26 Thread Chris Berkhout
I've added support to pricehist (https://gitlab.com/chrisberkhout/pricehist) for Bank of Canada daily exchange rates. For example: $ pricehist fetch bankofcanada USD/CAD -s 2021-01-04 -e 2021-01-07 -o beancount 2021-01-04 price USD 1.2751 CAD 2021-01-05 price USD 1.2707 CAD 2021-01-06 price USD

Re: bean-price with yahoo reporting invalid currency

2023-12-04 Thread Chris Berkhout
Hi You're fetching https://finance.yahoo.com/quote/USD rather than https://finance.yahoo.com/quote/INR=X This will get the right price: bean-price -d `date -u +%Y-%m-%dT%H:%M:%S` -e "INR:yahoo/INR=X" 2023-12-05 price INR=X 83.36799621582031 INR I'm not sure that you can rename

Re: bean-price with yahoo reporting invalid currency

2023-12-04 Thread Chris Berkhout
> > ...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 2023-12-01 price USD 83.35269927978516 INR 2023-12-04 price USD 83.2185