# Minara AI Strategy Backtester

> Minara AI Strategy Backtester is a paid API for AI agents from x402.minara.ai, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-13).

Backtests an algorithmic trading strategy written in a TypeScript/PineScript-style DSL against real historical market data and returns quantitative performance metrics, trade list, and equity curve.

## Facts

- Endpoint: POST https://x402.minara.ai/x402/strategy-studio/backtest
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/minara-ai-strategy-backtester-0a632757
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IuSOOK7BjpGD8tnzn0LMo

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 minara-ai-strategy-backtester-0a632757 -d '<json body>'
```

Example prompt: Backtest this BTCUSDT momentum strategy for me — here's the DSL code — and give me the Sharpe ratio, max drawdown, win rate, profit factor, and the full equity curve so I can see how it performed historically.

## When to prefer this

Use this endpoint when you need to quantitatively evaluate or iterate on an algorithmic trading strategy against real historical market data for crypto perpetual pairs (e.g. BTCUSDT, ETHUSDT) or US stocks (e.g. AAPL-USD). Prefer this over paper trading or live trading when you want fast, risk-free feedback on strategy performance metrics before deploying capital.

## Known failure modes

- Invalid or unparseable DSL strategy code returns a syntax/static-check error
- Unsupported trading pair symbol returns an error indicating the pair is unavailable
- Insufficient historical data for the requested pair/timeframe returns a data availability error
- Malformed request body returns a 400 bad request
- Payment failure or insufficient USDC balance prevents the call from completing

## How this service works

Backtest an algorithmic trading strategy. Submit strategy source code (written in the TypeScript/PineScript-style DSL described by the companion strategy codegen prompt endpoint); the service statically checks it against real historical market data, then returns quantitative performance metrics — net return, Sharpe / Sortino / Calmar, max drawdown, win rate, profit factor, plus the full trade list and equity curve. Use it to create, iterate on and quantitatively evaluate trading strategies, tune parameters, and A/B compare variants. Supports crypto perpetual pairs (e.g. BTCUSDT, ETHUSDT) and US-stock pairs (e.g. AAPL-USD, GOLD-USDC).

## Output

Returns quantitative performance metrics including net return, Sharpe/Sortino/Calmar ratios, maximum drawdown, win rate, and profit factor, along with a complete list of all simulated trades and the full equity curve over the backtest period.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/minara-ai-strategy-backtester-0a632757/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.minara.ai](https://www.zero.xyz/host/x402.minara.ai/llms.txt)
