ShareShortcuts

Stock Checker V2.0 UPDATED 1

qwertyuio
Создать форк «Stock Checker V2.0 UPDATED 1»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы qwertyuio получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
45K
Сохранено
3
Действия
40
Категория
Utilities
Версия
7.0
Язык
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…)

Что нового

Версия 7.0

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

История версий
7.0 3 окт 2022 г.

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

6.0 18 июл 2022 г.

Bug where the price was always $4

5.1 4 апр 2022 г.

Calculate stuff done

5.0 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 8 фев 2022 г.

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

3.0 2 фев 2022 г.

New way to check if the price is too low

2.0 1 фев 2022 г.

Do not repost please

1.0 1 фев 2022 г.

First release

Что делает

Действий: 40
  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

Посмотреть как код
Бета

Все действия этой команды, записанные на 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

См. все

Вам также может понравиться

См. все
Реклама