77trust / 100

Basis

by Futures Basis & Perp Premium in Onchain & crypto

x402 APIPassing, checked 5 h ago

Futures basis and term structure of one coin: dated futures on Bybit, Deribit, Kraken, Gate and OKX with days to expiry, basis vs index and annualised basis (contango or backwardation, the carry), the perp premium (mark vs index/oracle) on Hyperliquid, dYdX, Bitfinex and the others, and predicted funding. Crypto futures basis for BTC, ETH and more. Data only. Bad input is free; under 2 venues not charged.

GET
https://derivs.duoleads.com/v1/basis
Price
$0.003
per call in USDC
Uptime
100%
last 30 days
Response time
424 ms
646 ms slowest 5%
Last check
Passed
5 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

GET https://derivs.duoleads.com/v1/basis

Each call costs $0.003 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

GET https://derivs.duoleads.com/v1/basis?coin=BTC

Parameters

ParameterTypeRequiredDescription
coinstringYesCoin symbol: BTC, ETH, SOL ... (also BTCUSDT, BTC-PERP, XBT).

Example response

The provider's example. We can't check it without paying.

Example response, 147 lines
{
  "as_of": "2026-10-14T23:00:00Z",
  "coin": "BTC",
  "colo": null,
  "disclaimer": "Data only, not investment advice, not a benchmark; not affiliated with any exchange",
  "futures": [
    {
      "annualised_basis_pct": null,
      "as_of": "2026-10-14T23:00:00Z",
      "basis_pct": -0.000711102,
      "days_to_expiry": 0.375,
      "expiry": "2026-10-15T08:00:00Z",
      "index": 81563.54,
      "mark": 81562.96,
      "oi_usd": 1362060,
      "quote": "USD",
      "stale": false,
      "symbol": "BTC-15OCT26",
      "venue": "deribit",
      "volume_24h_usd": 1294160
    },
    {
      "annualised_basis_pct": -36.2158,
      "as_of": "2026-10-14T23:00:00Z",
      "basis_pct": -0.136429,
      "days_to_expiry": 1.375,
      "expiry": "2026-10-16T08:00:00Z",
      "index": 81654,
      "mark": 81542.6,
      "oi_usd": 6074760.61,
      "quote": "USDT",
      "stale": false,
      "symbol": "BTCUSDT-16OCT26",
      "venue": "bybit",
      "volume_24h_usd": 146515.9953
    },
    {
      "annualised_basis_pct": 6.13813,
      "as_of": "2026-10-14T23:00:00Z",
      "basis_pct": 0.0231231,
      "days_to_expiry": 1.375,
      "expiry": "2026-10-16T08:00:00Z",
      "index": 81563.54,
      "mark": 81582.4,
      "oi_usd": 8947950,
      "quote": "USD",
      "stale": false,
      "symbol": "BTC-16OCT26",
      "venue": "deribit",
      "volume_24h_usd": 2927380
    }
  ],
  "perp_premium": [
    {
      "as_of": "2026-10-14T23:00:00Z",
      "funding_rate_8h": 0.00003501,
      "index": 81672.62,
      "mark": 81631.8,
      "premium_pct": -0.04998,
      "stale": false,
      "symbol": "BTCUSDT",
      "venue": "bybit"
    },
    {
      "as_of": "2026-10-14T23:00:00Z",
      "funding_rate_8h": 0.0001,
      "index": 81658,
      "mark": 81624,
      "premium_pct": -0.0416371,
      "stale": false,
      "symbol": "BTC",
      "venue": "hyperliquid"
    }
  ],
  "predicted_funding": {
    "as_of": "2026-10-14T23:00:00Z",
    "rows": [
      {
        "apr_pct": -5.17826,
        "interval_h": 8,
        "next_funding_time": "2026-10-15T00:00:00Z",
        "rate": -0.00004729,
        "rate_8h": -0.00004729,
        "source": "binance"
      },
      {
        "apr_pct": 3.83359,
        "interval_h": 8,
        "next_funding_time": "2026-10-15T00:00:00Z",
        "rate": 0.00003501,
        "rate_8h": 0.00003501,
        "source": "bybit"
      },
      {
        "apr_pct": 10.95,
        "interval_h": 1,
        "next_funding_time": "2026-10-15T00:00:00Z",
        "rate": 0.0000125,
        "rate_8h": 0.0001,
        "source": "hyperliquid"
      }
    ]
  },
  "request_id": "01KEXAMPLE0000000000000000",
  "see_also": {
    "endpoint": "https://derivs.duoleads.com/v1/funding-rates",
    "params": [
      "coin"
    ],
    "reason": "Compare the futures basis with perpetual funding on every venue."
  },
  "term_structure": [
    {
      "avg_annualised_basis_pct": null,
      "days_to_expiry": 0.375,
      "expiry_date": "2026-10-15",
      "venues": [
        "deribit"
      ]
    },
    {
      "avg_annualised_basis_pct": -7.39756,
      "days_to_expiry": 1.375,
      "expiry_date": "2026-10-16",
      "venues": [
        "bybit",
        "deribit",
        "gate"
      ]
    }
  ],
  "units": {
    "annualised_basis_pct": "basis_pct * 365 / days_to_expiry (simple); null when the future expires in less than 1 day (and left out of the term-structure average)",
    "basis_pct": "(future - index) / index * 100",
    "days_to_expiry": "days (fractional)",
    "index": "USD per coin (the venue's index; oracle on Hyperliquid and dYdX)",
    "mark": "USD per coin",
    "premium_pct": "(perp mark - index) / index * 100",
    "times": "ISO 8601 UTC"
  },
  "venues_missing": [
    {
      "reason": "not_listed",
      "venue": "dydx"
    }
  ]
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.003.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://derivs.duoleads.com/v1/basis?coin=BTC'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://derivs.duoleads.com/v1/basis?coin=BTC' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.003 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.003" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.003 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fderivs.duoleads.com%2Fv1%2Fbasis
const res = await pay("https://derivs.duoleads.com/v1/basis?coin=BTC");
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.003 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.003"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://derivs.duoleads.com/v1/basis?coin=BTC")
    print(res.status_code, res.text)

Security scan

No findings

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

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed402430 ms$0.003
10 h agoPassed402424 ms$0.003
15 h agoPassed402306 ms$0.003
20 h agoPassed402345 ms$0.003
24 h agoPassed402433 ms$0.003
Show 7 older checks
29 h agoPassed402640 ms$0.003
34 h agoPassed402646 ms$0.003
38 h agoPassed402584 ms$0.003
43 h agoPassed402443 ms$0.003
47 h agoPassed402369 ms$0.003
2 days agoPassed402390 ms$0.003
3 days agoPassed402296 ms$0.003