curl --request POST \
--url https://api.ironflow.sh/v1/alerts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "BTC and ETH longs",
"url": "https://discord.com/api/webhooks/123/abc",
"markets": [
"BTC",
"ETH"
],
"side": "long",
"min_usd": 100000
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "webhook",
"destination": "discord.com/…",
"markets": [
"BTC-PERP",
"ETH-PERP"
],
"side": "any",
"min_usd": 100000,
"address": "<string>",
"signal": "liquidation_pressure",
"addresses": [
"0xabc0000000000000000000000000000000000001"
],
"threshold_pct": 10,
"price_low": 87500,
"price_high": 88500,
"status": "active",
"disabled_reason": "telegram_blocked",
"failures": 123,
"last_error": "destination answered HTTP 404: Unknown Webhook",
"last_sent_at": "2023-11-07T05:31:56Z",
"sent_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"signing_secret": "whsec_3f9a...",
"setup": "<string>"
}{
"error": {
"code": "BAD_REQUEST",
"message": "market is required (e.g. BTC-PERP)"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
}{
"error": {
"code": "TIER_FORBIDDEN",
"message": "Export requires Builder tier or above"
}
}Create a Hyperliquid liquidation alert
POST /v1/alerts posts matching Hyperliquid liquidations to your webhook, Discord, Slack or Telegram within seconds, filtered by market, side, size and wallet.
curl --request POST \
--url https://api.ironflow.sh/v1/alerts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "BTC and ETH longs",
"url": "https://discord.com/api/webhooks/123/abc",
"markets": [
"BTC",
"ETH"
],
"side": "long",
"min_usd": 100000
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "webhook",
"destination": "discord.com/…",
"markets": [
"BTC-PERP",
"ETH-PERP"
],
"side": "any",
"min_usd": 100000,
"address": "<string>",
"signal": "liquidation_pressure",
"addresses": [
"0xabc0000000000000000000000000000000000001"
],
"threshold_pct": 10,
"price_low": 87500,
"price_high": 88500,
"status": "active",
"disabled_reason": "telegram_blocked",
"failures": 123,
"last_error": "destination answered HTTP 404: Unknown Webhook",
"last_sent_at": "2023-11-07T05:31:56Z",
"sent_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"signing_secret": "whsec_3f9a...",
"setup": "<string>"
}{
"error": {
"code": "BAD_REQUEST",
"message": "market is required (e.g. BTC-PERP)"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
}{
"error": {
"code": "TIER_FORBIDDEN",
"message": "Export requires Builder tier or above"
}
}Authorizations
Ironflow API key, format if_xxxx. Free keys at https://ironflow.sh/key. Optional on read endpoints.
Body
position_risk (Explorer and up): warn when a position of one of addresses gets within threshold_pct of its liquidation price, and when that wallet is liquidated (see above). The others, Pro and Enterprise: follow an edge signal instead of liquidations. liquidation_pressure posts each call (a market side entering high pressure; side long = longs at risk, min_usd = least notional at risk); opening_bell posts the 09:29 New York preview of the HIP-3 stock perps in markets (all when omitted); flow_ahead posts each new TWAP with at least $250,000 left to execute (side long = buy TWAPs, short = sell TWAPs, min_usd = least USD left); flow posts each Flow alert event of GET /v1/signals/flow on markets (all when omitted; side long = bids and buy TWAPs, short = asks and sell TWAPs, min_usd = least USD of the event); sweep posts each sweep of GET /v1/signals/sweep on markets (side long = takers buying, short = takers selling, min_usd = least USD swept). At most one message a minute and 20 an hour per edge signal alert. No address filter. Other plans get 403 PLAN_REQUIRED.
liquidation_pressure, opening_bell, flow_ahead, flow, sweep, position_risk position_risk only: the wallets to watch, as a list or a comma-separated string. Their count over all of the account's position risk alerts is limited by plan (Explorer 10, Builder 200, Pro 1,000).
[
"0xabc0000000000000000000000000000000000001",
"0xabc0000000000000000000000000000000000002"
]
Response
Alert created. signing_secret appears only here, and only for webhooks.
Why a disabled alert is off: failures (20 failed deliveries in a row), sent (an email alert sent its one email), or a Telegram refusal that pauses it at once: telegram_blocked (a private chat blocked the bot), telegram_chat_not_found, telegram_deactivated (the account is gone) or telegram_removed (the bot was removed from the group or channel). Absent while active.
failures, sent, telegram_blocked, telegram_chat_not_found, telegram_deactivated, telegram_removed "telegram_blocked"