From Telegram, no key
Message @ironflow_liquidations_bot and say what you want:
The same bot watches wallets:
It works in a private chat, in a group (only the group’s admins can set up or stop alerts) and in a channel (add the bot as an admin that can post). Without a size the floor is $100k. A chat gets one alert (up to 20 markets), one watch and one follow for free;
/pro gives 5 alerts, 10 watches and 20 follows for 1,000 Telegram Stars a month. For Discord, Slack and webhooks, use a key as below.
By email, no key
On the liquidation map, pick a level and choose “Email me”: you get one email when liquidations start there. From code, the same call:min_usd) in that price band, then switches off. Only an address with no account can use it; with a key, create alerts as below.
Create one
Any API key works (a free key allows one alert). Pointurl at a Discord channel webhook, a Slack incoming webhook or your own HTTPS endpoint:
To get a Discord webhook URL: channel settings, Integrations, Webhooks, New Webhook, Copy Webhook URL. For Slack: create an app with Incoming Webhooks and add one to the channel.
Telegram
Telegram has no webhook URLs: our liquidation bot posts into your chat. Sendtelegram_chat instead of url:
setup names it too): in a channel as an admin that can post messages, in a group as a member. A public channel or group is its @name; a private one is its numeric id (it starts with -100; forward a message from the chat to a bot such as @userinfobot to see it). Then send a test; if the bot is missing from the chat, the test result says so.
What arrives
Partial fills of one liquidated position in one transaction count as one liquidation, andmin_usd applies to their total. An alert sends at most one message every 5 seconds, listing everything it matched since the last one (up to 20, then a count and a total), so a cascade arrives as a handful of messages.
In Discord and Slack each line reads:
"type": "test". Delivery is at least once: after a restart a few seconds can be sent again, so use id to drop repeats.
Verify a webhook
The create response has asigning_secret (shown once). Each request carries X-Ironflow-Signature: t=<unix seconds>,v1=<hex>, where v1 is the HMAC-SHA256 of <t>.<raw body> with that secret.
Position risk alerts
A position risk alert watches wallets instead of the market: it warns before one of their positions is liquidated. Wallets and apps use it to tell their users in time. It needs Explorer or a higher plan.
How it works:
- Every minute each open perp position of the watched wallets is checked against its liquidation price at the live mark. The positions come from Ironflow’s own Hyperliquid nodes, refreshed about every 12 minutes and priced at live marks, with Hyperliquid’s own liquidation price for a wallet that traded since the last refresh.
- A position that gets within
threshold_pctsends oneat_riskevent. It is armed again once it is back out past 1.25 times the threshold, and warns at most once every 30 minutes. - When a watched wallet is liquidated, a
liquidatedevent follows within seconds, with the liquidated size, notional and average price.
"type": "position_risk" and a list of events (up to 20 a message; more counts the ones in the next message). Each event has event (at_risk or liquidated), wallet, market, side, size, position_usd, entry_px, mark_px, liquidation_px, distance_pct, threshold_pct, leverage, leverage_type, time_ms, time and source. The full example is in Warn users before liquidation. In Discord, Slack and Telegram a line reads:
A position risk alert counts as one of the account’s alerts. Deliveries cost no credits. A test (
POST /v1/alerts/{id}/test) sends a sample at_risk event marked "type": "test".
Limits and failures
A failed delivery is tried once more 5 seconds later. After 20 failed deliveries in a row (a deleted webhook, an endpoint that is down) the alert is disabled;
GET /v1/alerts shows status, disabled_reason and last_error. A Telegram alert is paused at the first refusal when the chat cannot receive (the bot was blocked, removed from the group or channel, or the chat is gone), with disabled_reason naming why. Fix the destination and send a test: a delivered test switches the alert back on. An alert made in Telegram with /alert also comes back on with any command sent to the bot in that chat.
For the raw feed in your own code use the liquidations stream instead.