Authorization header:
from and to take Unix milliseconds, ISO 8601 or relative values such as -7d (Timestamps).
Show a user’s positions, PnL and history
Open positions with entry and mark prices, leverage and unrealized PnL:
Fills start on 25 May 2025 and funding payments on 27 September 2025. How far back a key reads depends on its plan (Rate limits).
Liquidation levels and the live liquidation feed
Where open positions in a market would be liquidated, by price:Prices and charts, HIP-3 included
Candles for a chart. HIP-3 markets use their full name, such asxyz:NVDA-PERP:
order=desc&limit=1. For a markets list with mark, 24h change, open interest and funding in one call, use Markets snapshot. List candles has every interval. Sources and markets explains market names.
Watch your users’ wallets live
The wallet stream sends the fills and liquidations of a list of wallets as they happen, so you do not poll each wallet:fill and liquidation. Reconnect with the Last-Event-ID header to get what you missed, up to an hour back; since=15 replays the last 15 minutes on a fresh open. One stream watches 10 wallets on Explorer, 200 on Builder and 1,000 on Pro. See Stream wallets.
Webhook alerts to your backend
Ironflow can post liquidations to your server, so your backend does not hold a stream open. This alert posts every liquidation of one wallet to your webhook:signing_secret once; verify the X-Ironflow-Signature header on each delivery with it. On Pro, the same call with signal follows an edge signal instead (Liquidation Pressure, Opening Bell, Flow Ahead). See Create alert and Liquidation alerts.
Warn users before liquidation
A position risk alert tells your backend when one of your users’ positions gets close to its liquidation price, so you can notify the user while there is still time to add margin or reduce the position. Send the wallets and how close is too close:threshold_pct (the distance is |mark - liquidation price| / mark), your webhook gets one at_risk event for it. If the wallet is then liquidated, a liquidated event follows within seconds.
markets, side and min_usd (position value) narrow what is watched.
Explorer watches 10 wallets, Builder 200 and Pro 1,000, counted over all of an account’s position risk alerts; for more, write to [email protected]. Deliveries cost no credits. GET /v1/alerts shows wallets_watched and wallet_limit. The liquidation alerts guide has the details.
Caching tips
- Cache market-wide data on your server and serve it to all your users: the markets snapshot, candles, the liquidation map and mark prices are the same for everyone. The liquidation map sends an
ETag; send it back asIf-None-Matchand an unchanged map answers304. - Call the per-user endpoints (user state, summary, fills) when a user opens the screen that shows them, not on a timer for every user.
- For live updates of many wallets, use one wallet stream instead of polling.