Feature Request: Stock market service widget to support non-US stocks as well #4027
Replies: 4 comments 9 replies
-
It's somewhat subtle in the homepage docs, but you can view the documentation for the Finnhub endpoint here: https://finnhub.io/docs/api/quote. The documentation for Finnhub says the endpoint provides US stock data, so I was a bit surprised that there was data for some non-US stocks and crypto. The non-US stock and crypto data appear to be inconsistent. I can't recommend using the stocks widgets for non-US stocks, or crypto at the time of writing this. If there are other APIs that would be suitable to provide data for non-US stocks, I would be happy to look into implementing another provider for the widgets. |
Beta Was this translation helpful? Give feedback.
-
Thanks, yes Yahoo Finance is often used for global prices e.g. at https://github.com/iprak/yahoofinance for Home Assistant. As free feeds are usually delayed no-one can expect super accurate prices. I think the big plus is just seeing whether some specific stocks / exchange rates are going up or down. Yahoo would be great, as I'm already using it on my mobile to track some of my stocks. |
Beta Was this translation helpful? Give feedback.
-
Ah thanks, I had not realised they were scraping the data. Let me also look a bit further and see what else there may be. Alpha Vantage API may be a good option. Others could be: |
Beta Was this translation helpful? Give feedback.
-
@Danie10 I have submitted a PR #4275 to add Yahoo Finance as a provider @eldyl if you want to take a look at it and/or review it you're more than welcome to do so as I have implemented it as another provider for your existing widget |
Beta Was this translation helpful? Give feedback.
-
Description
The widget is working for me for US-base stocks, but I'm not sure if I'm missing something for non-US stocks (syntax).
I'm looking to for example list a stock STX40 from Johannesburg stock exchange. Finnhub gives the exchange the code JO. But I tried adding STX40.JO and it gives an API error.
Other
No response
Beta Was this translation helpful? Give feedback.
All reactions