82trust / 100
Perps
by x402stock.xyz in Onchain & crypto
x402 APIPassing, checked 4 h ago
Live state of every perpetual-futures market in one call: per coin the mark and oracle price, hourly funding rate with annualized APR, premium, open interest, max leverage, previous-day price, and 24h USD and base volume. Native crypto-derivatives data — funding and open interest are perp-only, absent from any spot feed. Free on-chain DEX data (venue: Hyperliquid), no key. From x402stock
GET https://x402stock.xyz/api/v1/perps
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 222 ms typical, 222 ms slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402stock.xyz/api/v1/perps"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402stock.xyz%2Fapi%2Fv1%2Fperps
const res = await pay("https://x402stock.xyz/api/v1/perps");
console.log(await res.json());Example input
{}Example output
{
"as_of": "2026-06-04T00:00:00.000Z",
"count": 2,
"market": "perp",
"perps": [
{
"coin": "BTC",
"day_volume_base": 106799.6,
"day_volume_usd": 6772680481.63,
"funding_apr_percent": 10.95,
"funding_rate_hourly": 0.0000125,
"mark_price": 63606,
"max_leverage": 40,
"mid_price": 63606.5,
"open_interest": 31304.105,
"oracle_price": 63629,
"premium": -0.0003457543,
"prev_day_price": 64583
}
],
"source": "x402stock",
"venue": "hyperliquid"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 222 ms | $0.02 |