Skip to content

ayyess/beancount-financequote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Finance::Quote support for Beancount’s bean-price.

Finance::Quote requires an ALPHAVANTAGE_API_KEY environmental variable for currency pairs since Yahoo shut down its finance API. One can be acquired at here for free.

Add beancount_financequote to the PYTHONPATH to use.

$ bean-price -e GBP:beancount_financequote/mstaruk:GB00B3X7QG63
2017-06-06 price mstaruk:GB00B3X7QG63               194.77 GBP
$ bean-price -e USD:beancount_financequote/NASDAQ:GOOG
2017-06-07 price NASDAQ:GOOG                        979.53 USD

$ export ALPHAVANTAGE_API_KEY=...
$ bean-price -e USD:beancount_financequote/^CURRENCY:USDBTC
2018-01-26 price CURRENCY:USDBTC        11358.47342117219392743442231 USD
$ bean-price -e EUR:beancount_financequote/^CURRENCY:EURUSD
2018-01-26 price CURRENCY:EURUSD        0.8060670019335774126601653856 EUR

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published