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
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
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
SCRIPTING
Get
Value
for
Repeat Item
in
Stocks
MATHS
Options Under Construction
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
$
DOCUMENTS
Replace
(\d+)(\.\$)
with
$1$
in
Text
Case Sensitive
Regular Expression
SCRIPTING

Showcuts

Magic Vars

Screenshot

Submitted by rettiwtwong 14 days ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0