# CoreForge Trading Data – Strategy Backtest

> CoreForge Trading Data – Strategy Backtest is a paid API for AI agents from coreforge-memory.onrender.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-12-02).

Evaluates a named trading strategy over daily price bars for one or more tickers, returning in-sample and out-of-sample walk-forward metrics (net return, win rate, max drawdown, trade count) with optional Monte Carlo block-resample distribution.

## Facts

- Endpoint: POST https://coreforge-memory.onrender.com/x402/trading/backtest?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coreforge-trading-data-strategy-backtest-0936a69c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N8JcH80Dv9H9i4uaP7V7H

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 coreforge-trading-data-strategy-backtest-0936a69c -d '<json body>'
```

Example prompt: Run a backtest for the momentum strategy on AAPL and NVDA over a 120-day window, and include the Monte Carlo distribution so I can see the range of possible outcomes.

## When to prefer this

Choose this endpoint when you need fast, rule-based strategy evaluation over daily price bars with explicit walk-forward (in-sample vs out-of-sample) separation and optional Monte Carlo risk distribution. It is best suited for quantitative research workflows, pre-trade strategy validation, and risk scenario analysis on US equities. Prefer this over live trading APIs when you want computed historical metrics only, not execution. It supports up to 10 tickers per call, making it efficient for small watchlist comparisons.

## Known failure modes

- Invalid or unrecognized ticker symbol — endpoint may return an error or empty data
- Strategy name not matching the supported enum (ma_crossover, rsi_mean_reversion, momentum, leveraged_momentum, macd_crossover) — returns validation error
- windowDays outside the 7–365 range — rejected with parameter validation error
- Exceeding 10 tickers in the symbols array — request rejected
- Insufficient historical data for a ticker over the requested window — may return null metrics or partial results
- Upstream market data unavailability — computation fails with a data-fetch error
- Payment not included or insufficient USDC — 402 Payment Required response

## How this service works

Historical rule-set evaluation over daily bars: net return, win rate, max drawdown and trade count for the latest window (in-sample) and the window before it (out-of-sample walk-forward); optional Monte Carlo block-resample distribution. Computed data, not a performance promise.

## Output

Returns computed metrics for the specified strategy and tickers, split into an in-sample window (latest period) and an out-of-sample walk-forward window (preceding period). Metrics include net return percentage, win rate, maximum drawdown, and trade count. If Monte Carlo is enabled, also returns a distribution of simulated net returns from 500 seeded block-resample runs. Results represent computed historical rule-set evaluation, not a performance guarantee.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "symbol": {
   "type": "string",
   "description": "Single ticker (or use symbols)"
  },
  "symbols": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Up to 10 tickers"
  },
  "strategy": {
   "type": "string",
   "description": "One of: ma_crossover | rsi_mean_reversion | momentum | leveraged_momentum | macd_crossover"
  },
  "monteCarlo": {
   "type": "boolean",
   "description": "Add a Monte Carlo block-resample distribution (500 simulations, seeded)"
  },
  "windowDays": {
   "type": "integer",
   "description": "Evaluation window in days, 7-365 (default 90)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coreforge-trading-data-strategy-backtest-0936a69c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from coreforge-memory.onrender.com](https://www.zero.xyz/host/coreforge-memory.onrender.com/llms.txt)
