It seems that IEX stopped prividing non-IEX data:

https://iextrading.com/developer/docs/

https://iextrading.com/developer/#sunset-schedule

-- 
Zhuoyun Wei

On Tue, Jun 18, 2019, at 02:01, [email protected] wrote:
> I think something is wrong with the IEX asset pricing source.
> 
> Something like this:
> `
> 2018-09-15 commodity UBER
>  price: "USD:iex/UBER"
> `
> 
> Results in something like this:
> `
> Traceback (most recent call last):
> File 
> "/nix/store/bmq1vsmckm7vrfg4z0yyqb9jpddv6p6p-python3-3.7.3-env/lib/python3.7/shelve.py",
>  line 111, in __getitem__
>  value = self.cache[key]
> KeyError: '5f40c1783265eb0919e27627aed4d146'
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
> File 
> "/nix/store/bmq1vsmckm7vrfg4z0yyqb9jpddv6p6p-python3-3.7.3-env/lib/python3.7/site-packages/beancount/prices/price.py",
>  line 84, in fetch_cached_price
>  timestamp_created, result_naive = _CACHE[key]
> File 
> "/nix/store/bmq1vsmckm7vrfg4z0yyqb9jpddv6p6p-python3-3.7.3-env/lib/python3.7/shelve.py",
>  line 113, in __getitem__
>  f = BytesIO(self.dict[key.encode(self.keyencoding)])
> KeyError: b'5f40c1783265eb0919e27627aed4d146'
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
> File 
> "/nix/store/h5bpd5swkwcgxhz05aaj430qja3v04js-python3.7-beancount-2.2.1/bin/.bean-price-wrapped",
>  line 5, in <module>
> from beancount.prices.price import main; main()
> File 
> "/nix/store/bmq1vsmckm7vrfg4z0yyqb9jpddv6p6p-python3-3.7.3-env/lib/python3.7/site-packages/beancount/prices/price.py",
>  line 369, in main
>  price_entries = sorted(price_entries, key=lambda e: e.currency)
> File 
> "/nix/store/bmq1vsmckm7vrfg4z0yyqb9jpddv6p6p-python3-3.7.3-env/lib/python3.7/concurrent/futures/_base.py",
>  line 586, in result_iterator
> yield fs.pop().result()
> File 
> "/nix/store/bmq1vsmckm7vrfg4z0yyqb9jpddv6p6p-python3-3.7.3-env/lib/python3.7/concurrent/futures/_base.py",
>  line 432, in result
> return self.__get_result()
> File 
> "/nix/store/bmq1vsmckm7vrfg4z0yyqb9jpddv6p6p-python3-3.7.3-env/lib/python3.7/concurrent/futures/_base.py",
>  line 384, in __get_result
> raise self._exception
> File 
> "/nix/store/bmq1vsmckm7vrfg4z0yyqb9jpddv6p6p-python3-3.7.3-env/lib/python3.7/concurrent/futures/thread.py",
>  line 57, in run
>  result = self.fn(*self.args, **self.kwargs)
> File 
> "/nix/store/bmq1vsmckm7vrfg4z0yyqb9jpddv6p6p-python3-3.7.3-env/lib/python3.7/site-packages/beancount/prices/price.py",
>  line 159, in fetch_price
>  srcprice = fetch_cached_price(source, psource.symbol, dprice.date)
> File 
> "/nix/store/bmq1vsmckm7vrfg4z0yyqb9jpddv6p6p-python3-3.7.3-env/lib/python3.7/site-packages/beancount/prices/price.py",
>  line 100, in fetch_cached_price
> if time is None else
> File 
> "/nix/store/bmq1vsmckm7vrfg4z0yyqb9jpddv6p6p-python3-3.7.3-env/lib/python3.7/site-packages/beancount/prices/sources/iex.py",
>  line 49, in get_latest_price
> return fetch_quote(ticker)
> File 
> "/nix/store/bmq1vsmckm7vrfg4z0yyqb9jpddv6p6p-python3-3.7.3-env/lib/python3.7/site-packages/beancount/prices/sources/iex.py",
>  line 30, in fetch_quote
>  response.text))
> beancount.prices.sources.iex.IEXError: Invalid response (403): Forbidden
> `
> 
> What's the go-to price sources these days? I'm guessing that Yahoo and 
> Google sources don't work anymore. What should I migrate to?
> 
>  -- 
>  You received this message because you are subscribed to the Google 
> Groups "Beancount" group.
>  To unsubscribe from this group and stop receiving emails from it, send 
> an email to [email protected].
>  To post to this group, send email to [email protected].
>  To view this discussion on the web visit 
> https://groups.google.com/d/msgid/beancount/33b31600-3304-405b-8eb1-9f983890caac%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/beancount/33b31600-3304-405b-8eb1-9f983890caac%40googlegroups.com?utm_medium=email&utm_source=footer>.
>  For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/4a44cd23-e246-4cb5-b925-f16b22e3fca8%40www.fastmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to