# Mangrove Backtest Benchmark

> Mangrove Backtest Benchmark is a paid API for AI agents from api.mangrovedeveloper.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-04).

Retrieves benchmark performance data for a specified crypto asset over a given date range, optionally scoped to a specific market and venue.

## Facts

- Endpoint: GET https://api.mangrovedeveloper.ai/api/v1/backtests/benchmark?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mangrove-backtest-benchmark-e8acca96
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j0kXZNlhuGWU4_Lk15WAC

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 mangrove-backtest-benchmark-e8acca96
```

Example prompt: Pull the benchmark performance data for BTC from 2025-01-01 to 2025-06-01 — I want to use it to evaluate how my strategy did against a baseline.

## When to prefer this

Use this endpoint when you need a canonical benchmark baseline for a crypto asset over a specific historical window, particularly to compare against a custom trading strategy's performance. Prefer this over generic price history endpoints when you specifically need benchmark-normalized returns for backtesting evaluation purposes within the Mangrove Agent ecosystem.

## Known failure modes

- Missing required fields (asset, start_date, end_date) returns a 400 validation error
- Invalid ISO date format causes a parsing error
- Unsupported asset symbol returns a 404 or empty result
- Specifying base_token or quote_token without market_data_venue may cause incomplete results
- Date ranges with no available data return empty or null benchmark series
- Payment not fulfilled (x402) results in a 402 Payment Required response

## How this service works

Developer references for Mangrove Agent, API contracts, MCP and AI integrations.

## Output

Returns benchmark performance metrics for the specified asset and date window, including time-series return data that can be used as a reference baseline for strategy evaluation. When a specific market is requested (via base_token, quote_token, and market_data_venue), results are scoped to that exact trading pair and venue.

## 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",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "asset",
      "end_date",
      "start_date"
     ],
     "properties": {
      "asset": {
       "type": "string",
       "description": "Asset symbol, e.g. BTC or ETH."
      },
      "end_date": {
       "type": "string",
       "description": "ISO end of the window."
      },
      "base_token": {
       "type": "string",
       "description": "Canonical base token; supply with quote_token and market_data_venue."
      },
      "start_date": {
       "type": "string",
       "description": "ISO start of the window, e.g. 2026-01-01."
      },
      "quote_token": {
       "type": "string",
       "description": "Quote currency of the requested market."
      },
      "market_data_venue": {
       "type": "string",
       "description": "Exact venue of the requested market."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mangrove-backtest-benchmark-e8acca96/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.mangrovedeveloper.ai](https://www.zero.xyz/host/api.mangrovedeveloper.ai/llms.txt)
