Login About Gallery
Stonks 2
COMMENT
‎Shortcut by u/gianflo6 Find more of my shortcuts here: https://www.reddit.com/user/gianflo6/comments/f0yh05/
DICTIONARY
COMMENT
‎Get your token at: (takes about 1 minute) https://www.alphavantage.co/support/#api-key Enter token here⬇️
TEXT
‎Text
SCRIPTING
‎If ‎Text ‎does not have any value
SCRIPTING
‎Show alert ‎No API key found!
Title
‎No API key found!
Show Cancel Button
SCRIPTING
‎Exit shortcut with ‎Result
SCRIPTING
‎End If
SCRIPTING
‎Repeat with each item in ‎Stocks
URL
‎https://www.alphavantage.co/query?function=GLOBAL_QUOTE&datatype=json&symbol= ‎Repeat Item ‎&apikey= ‎Text
NETWORK
‎Get contents of ‎URL
‎Options Under Construction
DOCUMENTS
‎Replace ‎(\d{1,})(\.)(\ ) ‎with ‎World ‎in ‎Contents of URL
Case Sensitive
Regular Expression
TEXT
‎Split ‎Updated Text ‎by ‎Custom ‎.
SCRIPTING
‎Get ‎First Item ‎from ‎Split Text
SCRIPTING
‎Get ‎Last Item ‎from ‎Split Text
TEXT
‎Split ‎Item from List ‎by ‎Every Character
SCRIPTING
‎Get ‎Items in Range ‎Start Index ‎to ‎2 ‎from ‎Split Text
TEXT
‎Combine ‎Item from List ‎with ‎Custom ‎Text
TEXT
‎Combined Text ‎Item from List
SCRIPTING
‎Get ‎Value ‎for ‎Repeat Item ‎in ‎Stocks
MATHS
‎Text ‎× ‎Dictionary Value
‎Options Under Construction
MATHS
‎Calculation Result ‎÷ ‎100
‎Options Under Construction
MATHS
‎Round ‎Calculation Result ‎to ‎Ones Place
Mode
‎Normal
TEXT
‎Dictionary Value ‎: ‎Updated Text ‎ $ Your ‎Rounded Number ‎ stocks are worth ‎Updated Text ‎$
DOCUMENTS
‎Replace ‎([0]{1,})(\ )(\$) ‎with ‎$ ‎in ‎Text
Case Sensitive
Regular Expression
SCRIPTING
‎End Repeat
TEXT
‎Combine ‎Repeat Results ‎with ‎New Lines
TEXT
‎Match ‎(?<=stocks\ are\ worth\ ).*(?=\$) ‎in ‎Combined Text
Case Sensitive
MATHS
‎Calculate the ‎Sum ‎of ‎Matches
MATHS
‎Calculate the ‎Sum ‎of ‎Stocks
TEXT
‎Sum ‎ Total Value of your ‎Sum ‎ Stocks: ‎Combined Text ‎$
DOCUMENTS
‎Replace ‎(\d+)(\.\$) ‎with ‎$1$ ‎in ‎Text
Case Sensitive
Regular Expression
SCRIPTING
‎Show ‎Updated Text

Showcuts

Magic Vars

Screenshot

Submitted by rettiwtwong 2 years ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0