Stock/Ticker symbol widget

This is a fairly complicated setup but was what I was able to come up with. The first step was to set up a method to collect the data from AlphaAdvantage and save it into a text file stored locally. That text file is what is referenced for each script. I went this route to the limitations in the free access to the AlphaAdvantage API with only 5 calls being allowed per minute.

the stockData variable used in the script is simply calling on the text file to fetch the data in order to present it. Each script I had provided was a separate script, each one for a separate button on the touchbar and each pulling data from the same text file.

I hope this helps clear up some confusion. I am more than happy to help if you need more assistance but please do know I no longer use this set up personally as my portfolio has grown so the API no longer fit my needs (and I am too cheap to pay for increased access). I am still looking around for other solutions which may be more efficient.