Server-side price alerts to Telegram in 5 minutes.
Optiom Research · runnable code, tested against the live API
Browser alerts die when the tab closes. Optiom alerts run server-side: you store a threshold, the pipeline checks prices every 5 minutes, and a Telegram bot messages you when it triggers. Setup is a bot token away.
Get your Telegram chat id
Create a bot with @BotFather (/newbot, pick a name) — or use an existing one. Send your bot any message, then open https://api.telegram.org/botYOUR_TOKEN/getUpdates in a browser: your chat id is in message.chat.id. That id is what routes alerts to you.
Create the alert
While signed in on getoptiom.com, alerts are one authenticated POST away. The snippet below runs in the browser console; each account can hold up to 20 active alerts, and each alert fires once then marks itself triggered.
// Run in your browser console while signed in on getoptiom.com
await fetch("/api/alerts", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
symbol: "BTCUSDT",
op: "below", // "above" or "below"
price: 55000,
telegram_chat_id: "123456789",
}),
}).then(r => r.json());
// List your alerts
await fetch("/api/alerts").then(r => r.json());
// Delete one
await fetch("/api/alerts?id=ALERT_ID", { method: "DELETE" });How it runs
A worker evaluates all active alerts against the latest 1-minute close every 5 minutes. When your threshold is crossed you get a Telegram message with the symbol, threshold and last price, and the alert flips to triggered — re-arm it by creating it again. Self-serve API keys will make this scriptable without the browser session.
Run it on your own data.
Create a free account for CSV exports, then move to API access as your workflow grows.