81trust / 100

Data Funding Oi

by asistent-crypto.vercel.app in Onchain & crypto

x402 APIPassing, checked 3 h ago

Perpetual funding rate and open interest for up to 10 coins in a single call, across Binance, Bybit, OKX and Hyperliquid. Answers 'where is the leverage right now?' for a whole watchlist at once. Thin venues are excluded: averaging every venue that publishes a rate overstates BTC funding by ~30x, because a near-empty book printing 9% per 8h counts the same as a deep one. Funding comes per 8h and annualized, so 0.0067% reads as 7.3% a year.

POST https://asistent-crypto.vercel.app/api/x402/data/funding-oi

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
221 ms typical, 221 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://asistent-crypto.vercel.app/api/x402/data/funding-oi" \
  -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.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fasistent-crypto.vercel.app%2Fapi%2Fx402%2Fdata%2Ffunding-oi
const res = await pay("https://asistent-crypto.vercel.app/api/x402/data/funding-oi", {
  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": {},
  "ok": true,
  "tool": "get_derivatives_aggregate"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402362 ms$0.04
8 h agoPassed402221 ms$0.04