Checks your crypto watchlist every hour and sends a Telegram alert for each coin that moved more than your threshold.

UsesCoinMarketCapTelegram

Alert me in Telegram when a coin moves sharply

Every hour, the coins on your watchlist are checked against CoinMarketCap and a Telegram message is sent for each one whose price moved further in the last hour than the percentage you chose. Each run looks at a window the previous one did not.

Each alert names the coin and gives the hourly change that set it off, the threshold it passed, the current price in US dollars and the change over 24 hours, ending with a note that this is observed market data, not financial advice. A reading CoinMarketCap does not return raises nothing at all, because an alert fired on a value that was never read is worse than silence. Alerts per run are capped, so a swing across the whole market cannot flood the chat, and they carry no view on what a move means or what you should do.

You need a Telegram chat for the alerts and a list of ticker symbols to watch; a coin has to be large enough by market cap to appear in the listing that is searched.

Run every hour.Run every hour.
Set watchlist to blank.Set watchlist to blank.
Set alertChatId to blank.Set alertChatId to blank.
Set movePercent to blank.Set movePercent to blank.
Set maxAlertsPerRun to 10.Set maxAlertsPerRun to 10.
Set coinsSearched to 300.Set coinsSearched to 300.
Set alertThreshold to 0.Set alertThreshold to 0.
If a step below fails, save the error as thresholdErrorIf a step below fails, save the error as thresholdError
Try
Round movePercent multiplied by 1 to 2 decimal places and save it as alertThreshold.Round movePercent multiplied by 1 to 2 decimal places and save it as alertThreshold.
On error
Show in the output: “The move percentage is not a number.”.Show in the output: “The move percentage is not a number.”.
If alertThreshold is less than or equal to 0If alertThreshold is less than or equal to 0
Yes
Stop and report a problem: Set 'movePercent' to a positive number, for example 5 for a five percent hourly move, then run it again.Stop and report a problem: Set 'movePercent' to a positive number, for example 5 for a five percent hourly move, then run it again.
No
No steps
Set alertCap to 0.Set alertCap to 0.
If a step below fails, save the error as capErrorIf a step below fails, save the error as capError
Try
Round maxAlertsPerRun multiplied by 1 to the nearest integer and save it as alertCap.Round maxAlertsPerRun multiplied by 1 to the nearest integer and save it as alertCap.
On error
Show in the output: “The alert cap is not a number.”.Show in the output: “The alert cap is not a number.”.
If alertCap is less than or equal to 0If alertCap is less than or equal to 0
Yes
Stop and report a problem: Set 'maxAlertsPerRun' to a whole number of alerts, for example 10, then run it again.Stop and report a problem: Set 'maxAlertsPerRun' to a whole number of alerts, for example 10, then run it again.
No
No steps
Set watchedSymbols to an empty list.Set watchedSymbols to an empty list.
For each watchlistEntry in watchlist split by “,”:For each watchlistEntry in watchlist split by “,”:
TextMake watchlistEntry uppercase and save it as cleanedSymbol.Make watchlistEntry uppercase and save it as cleanedSymbol.
If cleanedSymbol isn't emptyIf cleanedSymbol isn't empty
Yes
Add cleanedSymbol to the end of watchedSymbols and save it as watchedSymbols.Add cleanedSymbol to the end of watchedSymbols and save it as watchedSymbols.
No
No steps
If watchedSymbols is emptyIf watchedSymbols is empty
Yes
Stop and report a problem: The 'watchlist' step has no ticker symbols in it. Write them separated by commas, for example BTC,ETH,SOL.Stop and report a problem: The 'watchlist' step has no ticker symbols in it. Write them separated by commas, for example BTC,ETH,SOL.
No
No steps
CoinMarketCapCoinMarketCapGet top CoinMarketCap cryptocurrencies. Save it as listings.Get top CoinMarketCap cryptocurrencies. Save it as listings.
Set rows to listings.listings.data.Set rows to listings.listings.data.
Set alertsSent to 0.Set alertsSent to 0.
For each row in rows:For each row in rows:
If alertsSent is greater than or equal to alertCapIf alertsSent is greater than or equal to alertCap
Yes
Stop repeating.Stop repeating.
No
No steps
Set symbol to row.symbol.Set symbol to row.symbol.
Set shouldAlert to false.Set shouldAlert to false.
Set alertText to blank.Set alertText to blank.
If a step below fails, save the error as rowErrorIf a step below fails, save the error as rowError
Try
If symbol isn't empty and watchedSymbols contains symbolIf symbol isn't empty and watchedSymbols contains symbol
Yes
Set usdQuote to row.quote.USD.Set usdQuote to row.quote.USD.
Set hourChangeRaw to usdQuote.percent_change_1h.Set hourChangeRaw to usdQuote.percent_change_1h.
Set hourChange to 0.Set hourChange to 0.
Set moveSize to -1.Set moveSize to -1.
If hourChangeRaw isn't emptyIf hourChangeRaw isn't empty
Yes
Change hourChange to hourChangeRaw multiplied by 1.Change hourChange to hourChangeRaw multiplied by 1.
Calculate the absolute value of hourChange and save it as moveSize.Calculate the absolute value of hourChange and save it as moveSize.
No
No steps
If moveSize is greater than or equal to alertThresholdIf moveSize is greater than or equal to alertThreshold
Yes
Set alertLines to an empty list.Set alertLines to an empty list.
Set heading to symbol.Set heading to symbol.
If row.name isn't emptyIf row.name isn't empty
Yes
Change heading to “@row.name (symbol)”.Change heading to “@row.name (symbol)”.
No
No steps
Add heading to the end of alertLines and save it as alertLines.Add heading to the end of alertLines and save it as alertLines.
Add 1h change: hourChange formatted as a plain number with 2 decimal places% to the end of alertLines and save it as alertLines.Add 1h change: hourChange formatted as a plain number with 2 decimal places% to the end of alertLines and save it as alertLines.
Add Your alert threshold: alertThreshold formatted as a plain number with 2 decimal places% in an hour to the end of alertLines and save it as alertLines.Add Your alert threshold: alertThreshold formatted as a plain number with 2 decimal places% in an hour to the end of alertLines and save it as alertLines.
Set priceLine to “Price: not reported by CoinMarketCap”.Set priceLine to “Price: not reported by CoinMarketCap”.
Set priceRaw to usdQuote.price.Set priceRaw to usdQuote.price.
If priceRaw isn't emptyIf priceRaw isn't empty
Yes
If a step below fails, save the error as priceErrorIf a step below fails, save the error as priceError
Try
Set priceNumber to priceRaw multiplied by 1.Set priceNumber to priceRaw multiplied by 1.
If priceNumber is less than 1If priceNumber is less than 1
Yes
Change priceLine to “Price: priceNumber formatted as US dollars with 8 decimal places”.Change priceLine to “Price: priceNumber formatted as US dollars with 8 decimal places”.
No
Change priceLine to “Price: priceNumber formatted as US dollars with 2 decimal places”.Change priceLine to “Price: priceNumber formatted as US dollars with 2 decimal places”.
On error
Show in the output: “The price came back in a form that is not a number, so it was left out.”.Show in the output: “The price came back in a form that is not a number, so it was left out.”.
No
No steps
Add priceLine to the end of alertLines and save it as alertLines.Add priceLine to the end of alertLines and save it as alertLines.
Set dayChangeRaw to usdQuote.percent_change_24h.Set dayChangeRaw to usdQuote.percent_change_24h.
If dayChangeRaw isn't emptyIf dayChangeRaw isn't empty
Yes
If a step below fails, save the error as dayChangeRawErrorIf a step below fails, save the error as dayChangeRawError
Try
Add 24h change: dayChangeRaw multiplied by 1 formatted as a plain number with 2 decimal places% to the end of alertLines and save it as alertLines.Add 24h change: dayChangeRaw multiplied by 1 formatted as a plain number with 2 decimal places% to the end of alertLines and save it as alertLines.
On error
Show in the output: “A percentage came back in a form that is not a number, so it was left out.”.Show in the output: “A percentage came back in a form that is not a number, so it was left out.”.
No
No steps
Add “Observed market data from CoinMarketCap. Not financial advice.” to the end of alertLines and save it as alertLines.Add “Observed market data from CoinMarketCap. Not financial advice.” to the end of alertLines and save it as alertLines.
Join alertLines with a new line and save it as alertText.Join alertLines with a new line and save it as alertText.
Change shouldAlert to true.Change shouldAlert to true.
No
No steps
No
No steps
On error
Show in the output: Skipped one coin while checking for moves: rowError as text.Show in the output: Skipped one coin while checking for moves: rowError as text.
If shouldAlert is yesIf shouldAlert is yes
Yes
TelegramTelegramSend a message to chat alertChatId.Send a message to chat alertChatId.alertText
Add 1 to alertsSent.Add 1 to alertsSent.
No
No steps