bean-price not fetching FX prices

118 views
Skip to first unread message

Danny Chan

unread,
Nov 4, 2024, 8:37:49 AM11/4/24
to Beancount
Hello Beancounters!

I'm having some trouble with using bean-price to fetch FX prices.

Here's the example .beancount file I'm working with:

I run into 2 issues when I run this command:
bean-price test.beancount --update --date `date +'%Y-%m-%d'` --update-rate weekly -v --clear-cache

1. Prices for SNAP and TSLA are fetched, but not USD.
--> However, if I comment out lines 33 - 39, and change line 29 to from USD to TSLA (or SNAP), then it fetches the prices (but I need to change the commodity name from TSLA back to USD).

2. Prices fetched do not have any decimal places. This is true even if I add `precision: 4` in the commodity directives.

Any pointers would be greatly appreciated -- thanks!

Reply all
Reply to author
Forward
0 new messages