Scanne avec ton iPhone pour installer
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…)
Nouveautés
Version 7.0
Bruh they keep changing the site, so I have to keep updating
Ce qu’il fait
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
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#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()
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de qwertyuio
Ça pourrait aussi te plaire
Publicité