U

Usenami · Backtest Data

by Usenami

GETBase

$0.05

per call · USD Coin on Base

Packaged time-series backtest feed for crypto perpetuals: funding-rate history plus optional orderbook snapshots, bundled per time bucket at 1h/4h/1d granularity — one paid call instead of stitching several endpoints together. Use include_funding/include_orderbook to control payload size.

Endpoint

GET https://api.usenami.io/v1/backtest/data

3

Calls / 30d

1

Unique payers / 30d

Sep 1

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://api.usenami.io/v1/backtest/data", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://api.usenami.io/v1/backtest/data?from=%5Bobject+Object%5D&granularity=%5Bobject+Object%5D&include_funding=%5Bobject+Object%5D&include_orderbook=%5Bobject+Object%5D&ticker=%5Bobject+Object%5D&to=%5Bobject+Object%5D&venue=%5Bobject+Object%5D" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": [
    {
      "funding_rate": 0.00012,
      "funding_samples": 1,
      "perp_price": 67234.5,
      "ts": "2026-05-01T00:00:00Z"
    }
  ],
  "from_ts": "2026-05-01T00:00:00Z",
  "granularity": "1h",
  "metadata": {
    "completeness_pct": 100,
    "data_sources": [
      "funding_history_hourly"
    ],
    "samples_count": 24
  },
  "ticker": "BTC",
  "to_ts": "2026-05-02T00:00:00Z",
  "venue": "binance"
}

Payment details

Pay to0x1538726707212f4db3eb67cec0910422a310475c
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

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

Get featured →

More from Usenami & similar services