agentdata-api.com/api/perp-funding
Perpetual funding and borrowing rates on GMX v2 (Arbitrum), read by us from the protocol contracts: per market the open interest of each side, which side pays, and funding, borrowing and net rate in percent per hour and per year (positive = the position receives). The numbers the protocol charges positions with; no exchange data. Use to compare the cost of holding a long or a short.
GET
https://agentdata-api.com/api/perp-fundingUptime100% 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://agentdata-api.com/api/perp-funding");
console.log(await res.json());Example input
{}