Open Hyperliquid perpetual positions for an EVM address
api.agentstools.dev/trader/perps
Open Hyperliquid perpetual positions for an EVM address: per-position direction, size, USD notional, leverage, entry, mark, unrealized PnL, ROE and liquidation price, PLUS derived signals — distance-to-liquidation, account leverage, aggregate unrealized PnL, concentration and a deterministic 0-100 liquidation-risk score when every open position has the required data. public on-chain data, not fina
GET
https://api.agentstools.dev/trader/perpsUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.agentstools.dev/trader/perps?address=0xf5d81a135f756ca16544e53c20fc20643ec3ad53");
console.log(await res.json());Example input
{
"address": "0xf5d81a135f756ca16544e53c20fc20643ec3ad53"
}