# Kraken Crypto Signals Backtest - x402 API

> Kraken Crypto Signals Backtest - x402 API is a paid API for AI agents from signals.nsgoods.org, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-15).

Returns backtested BUY/SELL/HOLD trading signals with win rate, return stats, and trade samples for a crypto pair over a recent window.

## Facts

- Endpoint: GET https://signals.nsgoods.org/backtest
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kraken-crypto-signals-backtest-x402-api-eab739fe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Cl_XyCObgNDZc63xS7yQJ

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 kraken-crypto-signals-backtest-x402-api-eab739fe
```

Example prompt: Run a backtest of the Kraken crypto signals for BTC/USD over the last 12 hours using 5-minute steps and a 30-minute forward window, and tell me the win rate and average return.

## When to prefer this

Use this endpoint when you need backtested performance metrics for crypto trading signals — specifically win rate, average return, and sample trades — over a recent historical window. Prefer this over live signal endpoints when you want to evaluate signal quality before acting, or when an agent needs to justify a trade recommendation with historical evidence.

## Known failure modes

- Invalid or unsupported trading pair returns an error response
- Payment not received or x402 payment failure returns 402 status
- Missing required query parameters returns a 400 bad request
- Kraken data source unavailable causes upstream failure
- No signals generated in window returns empty sample array

## How this service works

Walk-forward replay of the live multi-timeframe strategy over recent 1m history: win-rate and average forward return per BUY/SELL signal. Lets an agent measure recent edge before subscribing to the live signal stream (USDC on Base).

## Output

A JSON object containing the trading pair, a list of signal samples (each with timestamp, entry price, future price, signal type, and return percentage), plus aggregate stats: best/worst return, win rate, average return, number of signals evaluated, window hours, step minutes, forward minutes, and generation timestamp.

## Example request

```json
{
 "required": "BTC/USD",
 "properties": "12h"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pair": "BTC/USD",
  "sample": [
   {
    "ts": "2026-06-13T18:25:00",
    "entry": 64120.4,
    "future": 64235.1,
    "signal": "BUY",
    "return_pct": 0.179
   }
  ],
  "best_pct": 1.42,
  "worst_pct": -0.71,
  "generated_at": "2026-06-13T21:00:00+00:00",
  "step_minutes": 5,
  "win_rate_pct": 64.3,
  "window_hours": 12,
  "avg_return_pct": 0.18,
  "forward_minutes": 30,
  "signals_evaluated": 14
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kraken-crypto-signals-backtest-x402-api-eab739fe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from signals.nsgoods.org](https://www.zero.xyz/host/signals.nsgoods.org/llms.txt)
