Mit dem iPhone scannen, um zu installieren
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…)
Neue Funktionen
Version 7.0
Bruh they keep changing the site, so I have to keep updating
Was er macht
40 Aktionen-
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
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#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()
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Mehr von qwertyuio
Das gefällt dir vielleicht auch
Werbung