# Nami Backtest Data Feed

> Nami Backtest Data Feed is a paid API for AI agents from api.usenami.io, paid per call via x402, $0.050000/call, status unknown (last checked 2026-09-15).

Returns a packaged time-series backtest feed combining funding rate history and optional orderbook snapshots, bucketed at 1h, 4h, or 1d granularity for crypto derivatives research.

## Facts

- Endpoint: GET https://api.usenami.io/v1/backtest/data
- Price: $0.050000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-usenami-io-7520e6e2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nFOoClyGLV0usv3UbO1M1

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-usenami-io-7520e6e2
```

Example prompt: Pull me a backtest data feed for BTCUSDT at 4h granularity with funding history included and orderbook snapshots enabled — I need it for a strategy simulation.

## When to prefer this

Use this endpoint when you need a pre-packaged, multi-signal historical dataset combining funding rates and orderbook depth for backtesting crypto derivatives strategies. Prefer this over individual funding or orderbook endpoints when you want a single bundled feed across a time range without assembling multiple API calls. It is ideal for quantitative researchers building backtests that require both funding cost and market microstructure data in aligned time buckets.

## Known failure modes

- Invalid or unsupported ticker symbol returns an error
- Unsupported granularity value (not 1h/4h/1d) returns a validation error
- Both include_funding and include_orderbook set to false may return empty payload
- Payment not completed (x402 protocol) blocks data delivery
- Date range outside available history returns empty or partial results
- Rate limiting or quota exhaustion returns 429 or payment-required error

## How this service works

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.

## Output

A packaged time-series dataset containing funding rate history entries and (if requested) orderbook snapshots, organized into time buckets at the requested granularity (1h, 4h, or 1d). Each bucket contains timestamped funding rates and optionally bid/ask depth data for the given symbol.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "method": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-usenami-io-7520e6e2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.usenami.io](https://www.zero.xyz/host/api.usenami.io/llms.txt)
