crypto
x402-perp-funding-radar
$0.15 per call
Cross-venue funding radar: the same perpetual's funding on Hyperliquid, dYdX, Bybit and Binance, normalised to one hourly basis and annualised, with mark price and open interest side by side, plus the cheapest venue to be long and the richest to be short. Params: asset (base symbol, e.g. BTC), limit (1-200 rows, default 25), minAnnualSpreadPct (filter), historyDays (0-30 adds a history block), alertAnnualPct (flag rows above this annualised %).
0 paid calls ยท 0 trials
๐ Path A โ @x402/fetch (recommended)
npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";
const fetchWithPayment = wrapFetchWithPaymentFromConfig(fetch, {
schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(privateKeyToAccount(process.env.PRIVATE_KEY)) }],
});
const res = await fetchWithPayment("https://minia2a.uk/x402/x402-perp-funding-radar");
console.log(await res.json());
One npm install โ automatic 402 โ pay USDC on Base
๐ณ Path B โ Raw txHash
curl -X POST https://minia2a.uk/x402/x402-perp-funding-radar \
-H "Content-Type: application/json" \
-H "X-Payment-Tx: 0x<your usdc transfer tx hash>" \
-H "X-Payer-Signature: 0x<personal_sign of 'minia2a payment: <lowercase tx hash>'>" \
-d '{...}'
Send USDC to 0xAb62...7Bf on Base โ POST txHash + signature
Endpoint: https://minia2a.uk/x402/perp-funding-radar