I was looking around to see if there was anyway to display stock tickers on the touch bar and i came across this old posting about it where people were trying to figure it out. Funny enough, it looks like the last comment on the thread might have solved the issue but it was never responded to. For example, using "https://api.iextrading.com/1.0/stock/aapl/quote" returns a bunch of info about AAPL including "changePercent"
I have zero idea how to write apple or shell script, but wouldnt it be possible to have the script return that value (and hopefully convert it into a percentage format by moving the decimal over)? Can someone with more knowledge about this type of stuff take a peak at it?
It looks like no one has shared a solution to this problem since late 2017.
Here is a simple Node.js script that uses the Finnhub stock market API and a library called Axios to display a stock's current price as well as its percent change.
The link isn't working, I get the following error when trying to download the file: "The change you wanted was rejected. Maybe you tried to change something you didn't have access to."