Quick overview
This workflow checks a Solana SPL token’s USD price every 5 minutes via the public Jupiter price API and sends a Telegram message when the price crosses a configured threshold (above or below), triggering only once per threshold crossing rather than repeating on every check.
How it works
- Runs every 5 minutes on a schedule.
- Fetches the current USD price for the configured SPL token mint from the public Jupiter price API, retrying twice on failures.
- Evaluates whether the latest price is past the configured threshold (above or below) and compares it to the previous run’s stored state.
- Sends a Telegram alert only when the price transitions from not past the threshold to past the threshold.
Setup
- Create a Telegram bot with @BotFather, then add the bot token as a Telegram credential in n8n and select it in the Telegram notification step.
- Set environment variables for TOKEN_MINT (SPL mint address), PRICE_THRESHOLD (USD), DIRECTION (above or below), and TELEGRAM_CHAT_ID (your destination chat).
- Activate the workflow and keep it running so it can store the last threshold state between scheduled checks.