mate-desktop / mate-applets

Applets for use with the MATE panel
http://www.mate-desktop.org
GNU General Public License v2.0
78 stars 65 forks source link

Possible solution to replace yahoo API for stock ticker (iextrading) #310

Open gps1539 opened 6 years ago

gps1539 commented 6 years ago

Hi I'm posting this at the request of Martin Wimpress. I emailed him the following yesterday.

Hi I was listening the overview of Mate 1.20 on Linux unplugged and heard that the stock ticker is being removed from Mate as yahoo pulled their API.

I ran into the same issue on my project stock_quote, but I finally found an alternative with iextrading e.g. https://api.iextrading.com/1.0/stock/IBM/quote

No account or magic keys required and I find their performance is much better than yahoo's was. I've only tested my app with US stocks, not sure if FTSE etc. are covered.

https://github.com/gps1539/stock_quote

Hopefully this helps.

I use Mate on Arch (thanks for a great desktop). If someone can guide me to the stock ticker applet code I can see if it would be simple to swap to the iextrading APIs.

flexiondotorg commented 6 years ago

The invest applet was dropped in commit https://github.com/mate-desktop/mate-applets/commit/41f7b7a2a38ca9f3929fcbd88d228b3815034876

If you want to have a go at replacing the stock API then you can either checkout the master branch prior to that commit or experiment with that mate-applets 1.19.3 tarball which was the last dev snapshot that still had the invest applet included.

gps1539 commented 6 years ago

Thanks, alas it does not look so simple to replace the API, at least with my limited python skills. Also it looks like the applet could display currency data and I don't think iex provides that.

Here is a link the dev page from iex. https://iextrading.com/developer/docs/#getting-started