81trust / 100

Proxy Perp Funding

by Perp Funding Rates in Onchain & crypto

x402 APIPassing, checked 3 h ago

Perpetual futures funding rates for up to 10 coins across Binance, Bybit, OKX and Hyperliquid in one call: funding rate per interval, interval hours, annualized APR, mark price, open interest in USD and next funding time per venue, plus average APR, total open interest, max/min venue and the funding spread as an arbitrage hint. Venues that are unreachable or do not list a coin are reported per venue. Params: coins (default BTC, ETH, SOL), venues (default all).

POST https://agentsvc.io/api/v1/proxy/perp-funding

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
26 ms typical, 26 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentsvc.io/api/v1/proxy/perp-funding" \
  -H "content-type: application/json" \
  -d '{"coins":["BTC","ETH","SOL"]}'
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.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagentsvc.io%2Fapi%2Fv1%2Fproxy%2Fperp-funding
const res = await pay("https://agentsvc.io/api/v1/proxy/perp-funding", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"coins":["BTC","ETH","SOL"]}),
});
console.log(await res.json());

Example input

{
  "coins": [
    "BTC",
    "ETH",
    "SOL"
  ]
}

Example output

{
  "data": {
    "checked_at": "2026-10-06T14:29:37.754Z",
    "markets": [
      {
        "arbitrage_hint": "Short perp on hyperliquid, long perp on binance to collect about 8.09% APR before fees, if rates persist",
        "avg_apr_pct": 6.57,
        "coin": "BTC",
        "max_apr": {
          "apr_pct": 10.95,
          "venue": "hyperliquid"
        },
        "min_apr": {
          "apr_pct": 2.86,
          "venue": "binance"
        },
        "spread_apr_pct": 8.09,
        "total_open_interest_usd": 19077640267,
        "venues": [
          {
            "apr_pct": 2.86,
            "funding_rate": 0.00002614,
            "interval_hours": 8,
            "mark_price": 86008.66819565,
            "next_funding_time": "2026-10-06T16:00:00.000Z",
            "open_interest_usd": 8135786988,
            "symbol": "BTCUSDT",
            "venue": "binance"
          },
          {
            "apr_pct": 6.64,
            "funding_rate": 0.00006064,
            "interval_hours": 8,
            "mark_price": 86005.8,
            "next_funding_time": "2026-10-06T16:00:00.000Z",
            "open_interest_usd": 4930504638,
            "symbol": "BTCUSDT",
            "venue": "bybit"
          }
        ],
        "venues_ok": 4
      }
    ],
    "note": "funding_rate is per interval; positive means longs pay shorts. APR = rate x intervals per year."
  },
  "success": true
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed40226 ms$0.0025