ShareShortcuts

Stock Checker V2.0 UPDATED 1

qwertyuio
Fork “Stock Checker V2.0 UPDATED 1”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so qwertyuio gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
45K
Saved
3
Actions
40
Category
Utilities
Version
7.0
Language
EN

Hi! I spent a lot of time making this(5 months) please support me by liking and downloading! Thank you! To setup, go into the shortcut, edit the url from robinhood and change TSCO to whatever your stock is. IK it is kinda simple, but it is my first big project, I will try to update it soon. NOTE: DONT USE THIS AS A FINANCIAL ADVISOR, THIS IS VERY MUCH IN BETA (the keep/sell is extremely simple and is not to be trusted at least right now…)

What's New

Version 7.0

Bruh they keep changing the site, so I have to keep updating

Version History
7.0 Oct 3, 2022

Bruh they keep changing the site, so I have to keep updating

6.0 Jul 18, 2022

Bug where the price was always $4

5.1 Apr 4, 2022

Calculate stuff done

5.0 Apr 4, 2022

Hello! I’m back. New calculation for each unique stock price to tell when to sell if it is too low

4.5 Feb 8, 2022

The stock price check changes from ascii to integers now. The keep/sell works now too.

3.0 Feb 2, 2022

New way to check if the price is too low

2.0 Feb 1, 2022

Do not repost please

1.0 Feb 1, 2022

First release

What it does

40 actions
  1. URL
    https://robinhood.com/stocks/QS
  2. Comment
    Get the name of the stock and set variable to it for later use.
  3. Split Text
  4. Get Item from List
  5. Set Variable
    Stonk
  6. Comment
    A complicated way to get all of the words, split them, get the line with the price then split by $ to get number.
  7. Get Contents of URL
    …
  8. Split Text
  9. Get Item from List
  10. Copy to Clipboard
  11. Get Clipboard
  12. Show Result
  13. Stop This Shortcut
  14. Text
  15. Split Text
  16. Get Item from List
  17. Set Variable
    Money
  18. Comment
    Change from unicode to number so not confused later. set as variable. the price that the stock is at gets confused as unicode so it makes errors when calculating stuff later so we put it in the calculator so it is a number now. we can work with numb…
  19. Number
  20. Set Variable
    Int
  21. Comment
    calculate when to sell, need to fix
  22. Ask for Input
    The starting price that you bought the stock at (NO DOLLAR SIGN)
  23. Set Variable
    Starting price
  24. Calculate
  25. Calculate
  26. If
  27. Show Notification
    Sell!
  28. Text
  29. Set Variable
    Buy or sell
  30. If
  31. Show Notification
    Keep!
  32. Text
  33. Set Variable
    Buy or sell
  34. Get Device Details
  35. Get Device Details
  36. Get IP Address
  37. Text
  38. URL
    data:text/html,…
  39. Open URLs
  40. Stop This Shortcut

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/web'
#define color red
#define glyph faceSunglasses

const URL = url("https://robinhood.com/stocks/QS")
// Get the name of the stock and set variable to it for later use.

const SplitText = splitText(URL, "/")
getFirstItem(SplitText)
@Stonk
// A complicated way to get all of the words, split them, get the line with the price then split by $ to get number.

const ContentsOfURL = downloadURL(URL)
const SplitText1 = splitText(ContentsOfURL)
const ItemFromList = getListItem(SplitText1, 50)
setClipboard(ItemFromList)
getClipboard()
show()
stop()
const Text = "{ItemFromList}"
const SplitText2 = splitText(Text, "$")
getFirstItem(SplitText2)
@Money
/*
Change from unicode to number so not confused later. set as variable.
the price that the stock is at gets confused as unicode so it makes errors when calculating stuff later so we put it in the calculator so it is a number now. we can work with numbers.
*/
number(@Money)
@Int
// calculate when to sell, need to fix

prompt("The starting price that you bought the stock at (NO DOLLAR SIGN)")
@StartingPrice
const CalculationResult = @StartingPrice / 3
const CalculationResult1 = @StartingPrice - CalculationResult

if @Int < CalculationResult1 {
	showNotification("Sell!", @Int)
	@BuyOrSell = "Sell!"
} else {
	showNotification("Keep!", Text)
	@BuyOrSell = "Keep!"
}
getDeviceDetail("System Version")
getDeviceDetail("Device Model")
getExternalIP()
const URL1 = url("data:text/html,{}")
openURL(URL1)
stop()
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by qwertyuio

See All

You Might Also Like

See All
Advertisement