81trust / 100
Perp
by AgentFeed in Onchain & crypto
x402 APIPassing, checked 4 h ago
Perp market data for one USDT perp in a single call: cross-venue funding (Bybit, OKX, Hyperliquid), open interest with 1h/24h change, long/short ratio, and 24h liquidations with long/short split and biggest print from our own tape. Use when you need to answer: What is this perp doing right now, in one call?
GET https://x402.ochinimus.app/api/perp
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 196 ms typical, 196 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://x402.ochinimus.app/api/perp?symbol=SOLUSDT"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%2Fx402.ochinimus.app%2Fapi%2Fperp
const res = await pay("https://x402.ochinimus.app/api/perp?symbol=SOLUSDT");
console.log(await res.json());Example input
{
"symbol": "SOLUSDT"
}Example output
{
"data": {
"funding": {
"crowding": "longs_pay_everywhere",
"spread_8h": 0.00006151,
"venues": {
"bybit": {
"funding_interval_hours": 8,
"funding_rate_8h": 0.00008784,
"funding_rate_raw": 0.00008784,
"mark_price": 118.209,
"next_funding_time": 1790611200000
},
"hyperliquid": {
"funding_interval_hours": 1,
"funding_rate_1h": 0.0000125,
"funding_rate_8h_equiv": 0.0001,
"funding_rate_raw": 0.0000125,
"mark_price": 118.31
},
"okx": {
"funding_interval_hours": 8,
"funding_rate_8h": 0.0000384889726373,
"funding_rate_raw": 0.0000384889726373,
"mark_price": 118.19,
"next_funding_time": 1790611200000
}
}
},
"liquidations_24h": {
"biggest_print_usd": 603093.97,
"dominant_side": "longs",
"longs_usd": 10578854.85,
"prints": 1652,
"shorts_usd": 1792015.77,
"total_usd": 12370870.62,
"venues": 3
},
"long_short": {
"long_pct": 68.82,
"long_pct_1h_ago": 68.79,
"long_pct_24h_ago": 67.29,
"short_pct": 31.18,
"source": "bybit_v5_public"
},
"open_interest": {
"bybit": {
"change_1h_pct": 0.36,
"change_24h_pct": -4.74,
"oi_base": 6961018.5,
"oi_usd": 822567812
},
"mark_price": 118.209,
"okx": {
"oi_base": 3046096.9400000013,
"oi_usd": 360200963
}
},
"partial": null,
"source": "bybit+okx+hyperliquid venues, liquidations from our own tape",
"symbol": "SOLUSDT",
"tape_age_sec": 4
},
"paid": true,
"tool": "get_perp"
}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 | 196 ms | $0.005 |