80trust / 100

Perp Funding

by AllTheBot Perp funding rates in Onchain & crypto

x402 APIPassing, checked 5 h ago

Funding rate API for perpetual futures: current funding rate of any coin (BTC, ETH, SOL...) on Hyperliquid, with annualized %, next funding time, 24 h average, mark price, open interest and volume. For trading and arbitrage agents.

GET https://api.zkrobotics.fr/x402/perp/funding

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.zkrobotics.fr/x402/perp/funding?coin=ETH"
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.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.zkrobotics.fr%2Fx402%2Fperp%2Ffunding
const res = await pay("https://api.zkrobotics.fr/x402/perp/funding?coin=ETH");
console.log(await res.json());

Example input

{
  "coin": "ETH"
}

Example output

{
  "coin": "ETH",
  "hyperliquid": {
    "annualized_pct": -7.9712,
    "avg_annualized_pct_24h": 8.1999,
    "avg_rate_hourly_24h": 0.0000093606,
    "funding_rate_hourly": -0.0000090995,
    "mark_price": 2529,
    "open_interest": 1161464.5886,
    "oracle_price": 2530.32,
    "premium": -0.0005216731,
    "volume_24h_usd": 1046549822.45
  },
  "venues": {
    "hyperliquid": {
      "annualized_pct": -7.9712,
      "interval_hours": 1,
      "rate": -0.0000090995
    }
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed40287 ms$0.003