B

botsmith · Derivatives Perp

by botsmith

GETBaseX Layer

$0.02

per call · USD Coin on Base

Crypto Perp Snapshot ($0.02/call): One-call perpetual-futures snapshot for a coin (BTC, ETH, SOL, ...): funding rate and open interest across Binance, Bybit and OKX, aggregate OI, average funding (annualized) with a longs-pay/shorts-pay read, mark price, next funding time and the Fear & Greed index. Keyless public exchange data; normalized so a trading agent gets one JSON instead of three exchange schemas.

Endpoint

GET https://x402.botsmith.dev/derivatives/perp

2

Calls / 30d

2

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402.botsmith.dev/derivatives/perp", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402.botsmith.dev/derivatives/perp?symbol=BTC" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "aggregateOpenInterestBase": 186847,
  "avgFundingAnnualizedPct": -0.69,
  "avgFundingRate": -0.0000063,
  "fearGreed": {
    "classification": "Extreme Fear",
    "value": 25
  },
  "fundingSkew": "neutral",
  "markPrice": 64587.4,
  "nextFundingTime": "2026-07-18T16:00:00.000Z",
  "symbol": "BTC-PERP",
  "venues": [
    {
      "fundingRate": 0.00001117,
      "fundingRateAnnualizedPct": 1.22,
      "markPrice": 64587.4,
      "openInterestBase": 101352.15,
      "venue": "binance"
    },
    {
      "fundingRate": -0.00001327,
      "fundingRateAnnualizedPct": -1.45,
      "markPrice": 64593,
      "openInterestBase": 54447.45,
      "venue": "bybit"
    },
    {
      "fundingRate": -0.0000169,
      "fundingRateAnnualizedPct": -1.85,
      "markPrice": 64599.9,
      "openInterestBase": 31047.62,
      "venue": "okx"
    }
  ]
}

Payment details

Pay to0xcb9b3f94387389e38ef2a7b3c0b851fb8325d7e9
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, X Layer
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from botsmith & similar services