All templates
FeaturedIntegration#Binance#WebSocket#Crypto#Bitcoin#Price Alert#Realtime

Binance WebSocket BTC Price Alert

Subscribe to the Binance public WebSocket ticker stream and trigger a price alert when BTC/USDT crosses your target threshold — no API key required.

Workflow at a glance

The full canvas, before you import it

Click any node to see its config.

#Binance#WebSocket#Crypto#Bitcoin#Price Alert#Realtime

Click a node to select it — same as the Heym editor; the panel shows its settings.

7 nodes · Free & source-available

Binance WebSocket BTC Price Alert

Connect to Binance's public market data WebSocket and react to live BTC/USDT price movements in real time — no API key or account needed for public ticker streams.

What this workflow does

  1. WebSocket Trigger subscribes to the Binance BTC/USDT 24-hour ticker stream
  2. Condition compares the current last price against a configurable threshold
  3. On breach → Set formats the alert payload with symbol, price, and percent change
  4. Output returns the structured alert ready for downstream use (Slack, Telegram, email, etc.)
  5. Non-breach ticks fall through to a lightweight Output for run tracking

Use cases

  • Personal price alert bot that fires when BTC crosses a target
  • Automated DCA (dollar-cost averaging) entry signal
  • Portfolio rebalancing trigger on price breach
  • Trading journal or analytics event source
  • Webhook bridge to Slack, Telegram, or a dashboard

Setup

The Binance ticker WebSocket (wss://stream.binance.com:9443/ws/btcusdt@ticker) is public and unauthenticated — no credential is needed. Change the coin pair by swapping btcusdt in the URL for any listed pair (e.g. ethusdt, solusdt, bnbusdt).

Adjust the threshold in the Condition node ($int($BinanceFeed.message.data.c.substring(0,5)) > $int(78500)) to your target price. The field c is the last traded price as a string (e.g. "78523.45") — substring(0,5) strips the decimal part and $int() casts both sides before comparing.

Key ticker fields:

FieldMeaning
cLast traded price
pAbsolute price change (24 h)
PPrice change percent (24 h)
h / l24 h high / low
vBase asset volume (24 h)

Tip: For multiple pairs at once, use the combined stream URL: wss://stream.binance.com:9443/stream?streams=btcusdt@ticker/ethusdt@ticker Each message will include a stream key identifying the pair.

How to import this template

  1. 1Click Import → Copy JSON on this page.
  2. 2Open your Heym and navigate to a workflow canvas.
  3. 3PressCmd+V/Ctrl+V— nodes appear instantly.
  4. 4Add your API keys in the node config panels and click Run.
More workflow templates
View all templates
Heym
incident analysis · production AI
Observed across 100s of AI rollouts

AI workflows don't fail because of prompts.
They fail because of orchestration.

symptom · glue code01
5 tools
Scripts, vector DB, approval bot, tracing, browser runner — none of them talk.
symptom · visibility02
~0%
Observable behavior across the stack. Debugging is guesswork.
with heym · one runtime
1 canvas
Agents, RAG, HITL, MCP, traces & evals. Self-hosted. Observable.
AI-Native RuntimeProduction-Grade
github.com/heymrun/heym