# Animica Backtest

> Animica Backtest is a paid API for AI agents from animica.dev, paid per call via x402, $0.009/call, status unknown (last checked 2026-09-15).

Runs a backtest computation on the Animica platform via a pay-per-call HTTP endpoint

## Facts

- Endpoint: POST https://animica.dev/x402/alpha/backtest
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/animica-backtest-d6f522a4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__YDzCENYXIxS72WTrhmVp

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 animica-backtest-d6f522a4 -d '<json body>'
```

Example prompt: Run a backtest on Animica for my momentum strategy — POST the config and give me back the performance results. I'm okay with the $0.03 per-call charge.

## When to prefer this

Choose this endpoint when you need to run a backtest computation on the Animica platform and want a pay-per-call model at $0.03 USDC per execution. Prefer this over self-hosted backtesting when you want serverless, on-demand execution without managing infrastructure, and especially if you are already operating within the Animica or x402 ecosystem.

## Known failure modes

- Missing required 'input' or 'output' fields returns a validation error
- Malformed POST body or invalid HTTP method returns a 4xx error
- Payment failure or insufficient USDC balance causes x402 payment rejection
- Strategy configuration errors may return computation failure messages
- Service unavailability or timeout during computation

## How this service works

Animica Python Cloud: deploy a Python function to animica.dev, get a public endpoint, and earn ANM every time someone runs it. Free AI (OpenAI-compatible, no key), free scheduled Workers, and an 80/20 developer split.

## Output

A JSON response containing backtest results, which may include performance metrics, returns, drawdown statistics, or other computed simulation outputs depending on the strategy parameters submitted.

## 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": {
    "body": {
     "type": "object",
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/animica-backtest-d6f522a4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from animica.dev](https://www.zero.xyz/host/animica.dev/llms.txt)
