shayne / stock-ticker-stream-deck-plugin

A stock ticker plugin for Stream Deck
MIT License
25 stars 12 forks source link

Stop working for me recently #26

Closed berserksun closed 4 months ago

berserksun commented 10 months ago

Hi,

I have been using this plugin for over last year. But it stops working recently, not sure if it's related with recent update.

My location is in Canada.

juleshac commented 10 months ago

Stopped working for me too. Location uk but stocks are everywhere.

ardziej commented 9 months ago

Yahoo Finance disabled API. Based on apiURL in: https://github.com/shayne/stock-ticker-stream-deck-plugin/blob/master/pkg/api/api.go https://query1.finance.yahoo.com/v7/finance/quote?lang=en-US&region=US&corsDomain=finance.yahoo.com&fields=symbol,marketState,regularMarketPrice,regularMarketChange,regularMarketChangePercent,preMarketPrice,preMarketChange,preMarketChangePercent,postMarketPrice,postMarketChange,postMarketChangePercent

{ finance: { result: null, error: { code: "Unauthorized", description: "Invalid Crumb. For Developers - https://bit.ly/yahoo-finance-api-feedback" } } }

We can read that the API for Yahoo Finance is disabled. https://bit.ly/yahoo-finance-api-feedback

whyfuture commented 4 months ago

Indeed, needs a fix :(

whyfuture commented 4 months ago

@shayne maybe you could update it?

shayne commented 4 months ago

I'm using this daily and haven't experienced an issue. Make sure you're using the latest version from this site.

whyfuture commented 4 months ago

@shayne but if the Yahoo API is deprecated, how can it work? I tried 1.1.3 from the Elgato store and from Github, both don't react to tickers or presses

CleanShot 2024-04-07 at 13 03 39

shayne commented 4 months ago
image

Meanwhile... Perhaps try clearing them out and re-adding them? I'm using the equivalent of their web APIs AFAIK and the recent updates worked around the issues with the outgoing API.

rdohms commented 4 months ago

Same here; it does not seem to do anything; even in the debug console, it's just not there. I tried looking for failing requests but can't seem to find anyone.

I have removed and retried, uninstalled, and re-installed with no luck.

EDIT. I found the log files you write to, and in there:

API response status code non 200: 401 401 Unauthorized

whyfuture commented 4 months ago

ironically, the store is full of awesome crypto tickers and both forex/markets stock monitors are awful and/or don't work

whyfuture commented 4 months ago

image Meanwhile... Perhaps try clearing them out and re-adding them? I'm using the equivalent of their web APIs AFAIK and the recent updates worked around the issues with the outgoing API.

I tried, this plugin needs a rework, it doesn't work. My env isn't the problem.

whyfuture commented 4 months ago

EDIT. I found the log files you write to, and in there:

API response status code non 200: 401 401 Unauthorized

Probably people having old token have grandfathered access and new users are declined.

rdohms commented 4 months ago

I was doing some research, and it seems that no more "free, with no token" APIs are available. But Polygon and Finnhub seem like good candidates. They allow enough per-user volume to have a decent stock tracker. I would have no problem adding an API token to the configuration to get it working.

shayne commented 4 months ago

Thanks for the research. I'll look at switching providers.

shayne commented 4 months ago

I replaced the Yahoo Finance API with Finnhub. Please go download v1.2.0 from the releases page. I'll let Elgato know there's a new update: https://github.com/shayne/stock-ticker-stream-deck-plugin/releases/tag/v1.2.0

thomasriley commented 4 months ago

Thank you @shayne very much for the update to use a different API.

1.2.0 working great for me so far.