beanprice icon indicating copy to clipboard operation
beanprice copied to clipboard

Bean-price --update today's price

Open ThomasdenH opened this issue 3 years ago • 1 comments

What are the criteria for fetching a price? I have noticed that today's price is never fetched. This could be intentional, but then it means that a price fetcher that only provides the current price will never be updated. Is this a bug?

ThomasdenH avatar Apr 13 '21 12:04 ThomasdenH

I think there is some weirdness with timezones for some sources that makes it output wrong dates sometimes Eg:

$ bean-price -e "USD:yahoo/VTI" -d 2021-04-16
2021-04-16 price VTI                    217.14999389648438 USD           <- looks good
$ bean-price -e "USD:yahoo/EURUSD=X" -d 2021-04-16      
2021-04-15 price EURUSD=X               1.1971746683120728 USD           <- wtf?

mkatsevVR avatar Apr 28 '21 04:04 mkatsevVR