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
What it does
40 actions-
URLhttps://robinhood.com/stocks/QS
-
CommentGet the name of the stock and set variable to it for later use.
-
Split Text
-
Get Item from List
-
Set VariableStonk
-
CommentA complicated way to get all of the words, split them, get the line with the price then split by $ to get number.
-
Get Contents of URL…
-
Split Text
-
Get Item from List
-
Copy to Clipboard
-
Get Clipboard
-
Show Result
-
Stop This Shortcut
-
Text
-
Split Text
-
Get Item from List
-
Set VariableMoney
-
CommentChange 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…
-
Number
-
Set VariableInt
-
Commentcalculate when to sell, need to fix
-
Ask for InputThe starting price that you bought the stock at (NO DOLLAR SIGN)
-
Set VariableStarting price
-
Calculate
-
Calculate
-
If
-
Show NotificationSell!
-
Text
-
Set VariableBuy or sell
-
If
-
Show NotificationKeep!
-
Text
-
Set VariableBuy or sell
-
Get Device Details
-
Get Device Details
-
Get IP Address
-
Text
-
URLdata:text/html,…
-
Open URLs
-
Stop This Shortcut
View as code
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
You Might Also Like
Advertisement