Get Stocks Low and High for a Range - Shareable
This shortcut queries Yahoo Finance to get the low value and the high value of the close price of whatever stocks you specify for the duration (1mo, 1yr, 5yr) you specify. (You specify the duration by clicking the corresponding button.)
The shortcut writes the values to an Apple Note and assigns the tag "stocks" to the Note. The values are shown with the currency symbol for USD ($) by default. You can change this if the stocks listed on your exchange trade in a different currency (e.g., the British pound, Japanese yen, etc.).
The shortcut
https://www.icloud.com/shortcuts/43b4bc433c324663bf230d042188cf62
Example: If I have AAPL and RIVN in my stock list, and I click the 3mo button, the shortcut will return the lowest close price and the highest close price for each stock during the preceding three month period. The result will look like this:
Dependency
Actions by Sindre Sorhus: https://sindresorhus.com/actions
If your iPhone/Mac/iPad has the above dependency, you should be able to run the shortcut as-is.
Modifications you can make (look for the comments in the shortcut)
Currency symbol: Change the currency symbol concatenated to the values in the Apple Note. (Look for a comment followed by a Text action near the end of the shortcut.)
Durations (buttons): Change the durations (1mo, 3mo, etc.) that show up as buttons in the dialog box. Expand the "Ask for Input" action at the top of the shortcut to see them. Note that you're only allowed a max of 8 buttons in a dialog box, and Yahoo Finance has 9 allowed durations which are: 1mo, 3mo, 6mo, ytd, 1y, 2y, 5y, 10y, max
Stock list: Change the list of stocks by modifying the List action near the top of the shortcut.
NOTE: There is a one second Wait action at the end of the repeat action that loops through your stocks. This is to avoid getting rate-limited by the API. I read that somewhere. It may not be necessary. 🤷♀️