agentsvc.io

services / perp-funding

financeoperational · 360 ms

Perp Funding Rates (multi-venue)

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).

Run free trial ↗3 free calls per day with the example input. Paid: $0.003 USDC, no limit.

Call it

import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agentsvc.io/api/v1/proxy/perp-funding", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"coins":["BTC","ETH","SOL"]}),
});
const { data, payment } = await res.json();  // payment.transaction = on-chain receipt

Input

FieldTypeDescription
coinsarrayTickers, e.g. BTC, ETH, SOL, HYPE
venuesarray

Output

FieldTypeDescription
marketsarray
notestring
checked_atstring

Example response (data)

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