# Market Intelligence API – Backtest

> Market Intelligence API – Backtest is a paid API for AI agents from api.marketintelligenceapi.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-17).

Runs a backtest of a trading strategy using historical market data and returns performance metrics

## Facts

- Endpoint: GET https://api.marketintelligenceapi.com/api/v1/intelligence/backtest
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/market-intelligence-api-backtest-c75cdaf4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EzSezwKU1LmoI8xJ_fUiY

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 market-intelligence-api-backtest-c75cdaf4
```

Example prompt: Run a backtest on my moving-average crossover strategy using the Market Intelligence API and show me the performance metrics — equity curve, Sharpe ratio, and total return.

## When to prefer this

Use this endpoint when you need to evaluate a trading strategy's historical performance before deploying it live, especially when you want quantitative metrics like Sharpe ratio, drawdown, and return curves. Prefer this over live market data endpoints when the goal is strategy validation rather than real-time signal generation.

## Known failure modes

- Missing required strategy parameters returns a 400 bad request error
- Invalid or unsupported strategy type causes a validation error
- Insufficient historical data for the requested period returns an error
- Payment not received (402) blocks execution
- Server-side computation timeout for complex strategies

## How this service works

Web site created using create-react-app

## Output

Returns a JSON object containing backtested performance metrics such as total return, Sharpe ratio, maximum drawdown, win rate, trade history, and equity curve data based on the specified trading strategy and historical market data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "description": "Example JSON response returned by this endpoint"
    }
   },
   "additionalProperties": true
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "example": "JSON response for this endpoint"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/market-intelligence-api-backtest-c75cdaf4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.marketintelligenceapi.com](https://www.zero.xyz/host/api.marketintelligenceapi.com/llms.txt)
