Login About Gallery
Stonks 1
COMMENT
Shortcut by u/gianflo6 Find more of my shortcuts here: https://www.reddit.com/user/gianflo6/comments/f0yh05/
DICTIONARY
AAPL
10
TSLA
5
MSFT
20
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
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
DOCUMENTS
Replace
.
with
,
in
Updated Text
Case Sensitive
Regular Expression
SCRIPTING
Get
Value
for
Repeat Item
in
Stocks
MATHS
Options Under Construction
MATHS
Round
Calculation Result
to
Ones Place
Mode
Normal
DOCUMENTS
Replace
([0]{1,})(\ )(\$)
with
$
in
Text
Case Sensitive
Regular Expression
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
$
SCRIPTING
Show
Text

Showcuts

Magic Vars

Screenshot

Submitted by rettiwtwong 14 days ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0