X

x402-factory · Edge Backtest

by x402-factory

GETBase

$0.05

per call · USD Coin on Base

Historical performance of the edge signal: hit rate, calibration, by hazard — Aggregates stored edge signals whose markets have resolved: how often the model beat the market (hit rate), average absolute-error improvement (edge captured), a model calibration curve, and per-hazard breakdowns. model_label is explicit about which model produced the signals.

Endpoint

GET https://x402-factory.com/v1/edge/backtest

7

Calls / 30d

1

Unique payers / 30d

Sep 8

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-factory.com/v1/edge/backtest", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402-factory.com/v1/edge/backtest?window=90" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "avg_edge_captured": 0.0022,
    "by_hazard": [
      {
        "hazard": "temp_above",
        "hit_rate": 0.521,
        "n": 584
      },
      {
        "hazard": "any_precip",
        "hit_rate": 0.483,
        "n": 292
      },
      {
        "hazard": "named_storm_landfall",
        "hit_rate": 0.455,
        "n": 292
      },
      {
        "hazard": "wind_above",
        "hit_rate": 0.667,
        "n": 60
      }
    ],
    "calibration_curve": [
      {
        "bucket": "0.0–0.1",
        "predicted": 0.05,
        "realized": 0.055
      },
      {
        "bucket": "0.2–0.3",
        "predicted": 0.25,
        "realized": 0.26
      },
      {
        "bucket": "0.5–0.6",
        "predicted": 0.55,
        "realized": 0.548
      },
      {
        "bucket": "0.8–0.9",
        "predicted": 0.85,
        "realized": 0.849
      },
      {
        "bucket": "0.9–1.0",
        "predicted": 0.9,
        "realized": 0.3
      }
    ],
    "hit_rate": 0.503,
    "model_label": "stub-model",
    "n_signals": 1228
  },
  "meta": {
    "data_mode": "live",
    "docs": "https://x402-factory.com/docs/edge.backtest",
    "endpoint": "/v1/edge/backtest",
    "freshness": "daily",
    "generated_at": "2026-09-08T02:17:35.285Z",
    "request_id": "req_00000000",
    "sources": [
      "stub-model",
      "kalshi",
      "polymarket"
    ],
    "version": "1.0.0"
  }
}

Payment details

Pay to0xcc42ed39a06b6cf3f484307ef76b88bf56fb305f
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

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

Get featured →

More from x402-factory & similar services