81trust / 100

Crypto Funding Rate

by api.x-402.online in Onchain & crypto

x402 APIPassing, checked 5 h ago

Live perpetual futures funding rates for up to 10 coins from OKX: rate, annualized rate, which side pays, interval, next funding time and bounds Live perpetual futures funding rates for up to 10 coins at once from OKX: current rate, annualized rate, which side pays (longs or shorts), funding interval, next funding time and the rate bounds. Query…

GET https://api.x-402.online/v1/crypto/funding-rate

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
143 ms typical, 143 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.x-402.online/v1/crypto/funding-rate?symbols=BTC%2CETH"
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.x-402.online%2Fv1%2Fcrypto%2Ffunding-rate
const res = await pay("https://api.x-402.online/v1/crypto/funding-rate?symbols=BTC%2CETH");
console.log(await res.json());

Example input

{
  "symbols": "BTC,ETH"
}

Example output

{
  "count": 2,
  "exchange": "OKX",
  "rates": [
    {
      "annualized_pct": -1.06,
      "bias": "SHORTS_PAY_LONGS",
      "funding_rate_pct": -0.00097,
      "interval_hours": 8,
      "symbol": "BTC"
    }
  ]
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed402143 ms$0.005