Skip to content
Fourohtwo

agent402.tools/api/perp-funding

Current and historical funding rate for one perpetual futures market, from a live derivatives venue: hourly rate, the 8-hour and annualized equivalents, the mark-vs-oracle premium, and a window of past prints with average, minimum, maximum and the share that were positive. Use it when an agent needs to know what holding a leveraged position costs right now, or wants to detect a funding regime flip

SolanaBaseAnswering
POSThttps://agent402.tools/api/perp-funding

Uptime100% of 3 checks 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://agent402.tools/api/perp-funding", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"coin":"BTC","limit":24}),
});
console.log(await res.json());

Example input

{
  "coin": "BTC",
  "limit": 24
}