Отсканируй на iPhone, чтобы установить
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…)
Что нового
Версия 7.0
Bruh they keep changing the site, so I have to keep updating
Что делает
Действий: 40-
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
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#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()
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от qwertyuio
Вам также может понравиться
Реклама