75trust / 100

Funding History

by Funding Rate History (Perps) in Onchain & crypto

x402 APIPassing, checked 3 h ago

Funding rate history of one coin on one exchange (Bybit, Hyperliquid, dYdX, Gate, Kraken, Deribit or OKX), up to 30 days: every past funding print with interval, 8h rate and APR, plus avg/min/max/% positive and the window covered. Historical perpetual swap funding for backtests and carry studies on BTC, ETH, SOL and more. Data only. Bad input is free; a venue that fails is not charged.

GET
https://derivs.duoleads.com/v1/funding-history
Price
$0.003
per call in USDC
Uptime
100%
last 30 days
Response time
417 ms
611 ms slowest 5%
Last check
Passed
3 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/funding-history

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/funding-history?coin=BTC&days=7&venue=bybit

Parameters

ParameterTypeRequiredDescription
coinstringYesCoin symbol: BTC, ETH, SOL ... (also BTCUSDT, BTC-PERP, XBT, 1000PEPE).
daysstringNoDays back, 1-30. Default 7. Default: "7".
venuestringYesThe exchange whose funding history to return. One of: bybit, hyperliquid, dydx, gate, kraken, deribit, okx.

Example response

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

Example response, 58 lines
{
  "as_of": "2026-10-14T23:00:00Z",
  "coin": "BTC",
  "colo": null,
  "coverage": {
    "complete": true,
    "from": "2026-10-08T00:00:00Z",
    "requested_from": "2026-10-07T23:00:00Z",
    "to": "2026-10-14T16:00:00Z"
  },
  "days": 7,
  "disclaimer": "Data only, not investment advice, not a benchmark; not affiliated with any exchange",
  "interval_h": 8,
  "prints": [
    {
      "apr_pct": 1.18041,
      "interval_h": 8,
      "rate": 0.00001078,
      "rate_8h": 0.00001078,
      "time": "2026-10-08T00:00:00Z"
    },
    {
      "apr_pct": -1.46621,
      "interval_h": 8,
      "rate": -0.00001339,
      "rate_8h": -0.00001339,
      "time": "2026-10-08T08:00:00Z"
    }
  ],
  "request_id": "01KEXAMPLE0000000000000000",
  "see_also": {
    "endpoint": "https://derivs.duoleads.com/v1/funding-rates",
    "params": [
      "coin"
    ],
    "reason": "Current funding on every venue, with predicted next funding (incl. Binance and Bybit via Hyperliquid)."
  },
  "stale": false,
  "stats": {
    "avg_apr_pct": 2.25664,
    "avg_rate_8h": 0.00002060857143,
    "max_rate_8h": 0.00008676,
    "min_rate_8h": -0.00002132,
    "n": 21,
    "pct_positive": 61.9048
  },
  "symbol": "BTCUSDT",
  "units": {
    "apr_pct": "simple annualised percent = rate * 24 / interval_h * 365 * 100",
    "interval_h": "hours between funding payments (per print: the gap to its neighbouring print, whole hours 1-8)",
    "rate": "fraction per funding interval",
    "rate_8h": "fraction per 8 hours = rate * 8 / interval_h",
    "times": "ISO 8601 UTC"
  },
  "venue": "bybit",
  "venue_as_of": "2026-10-14T23:00:00Z",
  "venues_missing": []
}

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/funding-history?coin=BTC&days=7&venue=bybit'

# 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/funding-history?coin=BTC&days=7&venue=bybit' \
  | 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%2Ffunding-history
const res = await pay("https://derivs.duoleads.com/v1/funding-history?coin=BTC&days=7&venue=bybit");
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/funding-history?coin=BTC&days=7&venue=bybit")
    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
3 h agoPassed402405 ms$0.003
8 h agoPassed402611 ms$0.003
14 h agoPassed402458 ms$0.003
19 h agoPassed402417 ms$0.003
23 h agoPassed402299 ms$0.003
Show 9 older checks
28 h agoPassed402554 ms$0.003
33 h agoPassed402454 ms$0.003
38 h agoPassed402476 ms$0.003
42 h agoPassed402429 ms$0.003
47 h agoPassed402304 ms$0.003
2 days agoPassed402469 ms$0.003
2 days agoPassed402336 ms$0.003
3 days agoPassed402345 ms$0.003
3 days agoPassed40255 ms$0.003