Issue #404: Iex price source not working any more ? (blais/beancount)

20 views
Skip to first unread message

grostim

unread,
Sep 22, 2019, 3:55:00 PM9/22/19
to bean...@googlegroups.com
New issue 404: Iex price source not working any more ?
https://bitbucket.org/blais/beancount/issues/404/iex-price-source-not-working-any-more

Timothée GROS:

I am getting “Forbidden” error for all stocks.



> bean-price -e 'USD:iex/MSFT'
> ERROR : Error fetching MSFT: Invalid response \(403\): Forbidden
> ERROR : Could not fetch for job: DatedPrice\(base='MSFT', quote='USD', date=None, sources=\[PriceSource\(module=<module 'beancount.prices.sources.iex' from '/usr/local/lib/python3.7/site-packages/beancount/prices/sources/iex.py'>, symbol='MSFT', invert=False\)\]\)

Looks like the way to stoks data has changed.


timoth...@gmail.com

unread,
Sep 30, 2019, 4:15:50 PM9/30/19
to Beancount
Apparently the iex price fetcher soes not work anymore since IEX has moved to a new API mame iexcloud.

I have made a crude price fetcher using the library iexfinance.

my price fetcher is available here if it can help someone.
https://github.com/grostim/Beancount-myTools/blob/master/price/iexcloud.py

Reply all
Reply to author
Forward
0 new messages