# Losbeto Backtest

> Losbeto Backtest is a paid API for AI agents from losbeto-production-dd7c.up.railway.app, paid per call via x402, $0.06/call, status unknown (last checked 2026-09-14).

Runs a backtest simulation of a trading strategy and returns historical performance metrics

## Facts

- Endpoint: GET https://losbeto-production-dd7c.up.railway.app/backtest
- Price: $0.06/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-backtest-832d4472
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mYET5-u0XsJ6RHsgx8clw

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 losbeto-backtest-832d4472
```

Example prompt: Can you backtest a simple moving average crossover strategy for SOL/USDC over the past 6 months and tell me the win rate, total return, and max drawdown?

## When to prefer this

Choose this endpoint when you need to evaluate a trading strategy's historical performance within the Losbeto AI Trading Swarm ecosystem, especially when integrating with x402 micropayment flows on Solana or Base. Useful for AI agents building autonomous trading workflows that need on-demand, pay-per-call backtesting without a subscription model.

## Known failure modes

- Missing or malformed strategy properties in request body returns an error
- Invalid or unsupported asset symbol causes computation failure
- Date range with insufficient historical data returns empty or partial results
- Server timeout for complex strategies with long lookback windows
- x402 payment failure or insufficient USDC balance returns 402 status

## How this service works

Losbeto: 67 endpoints x402 monetizados. Solana + Base. USDC micropayments para AI agents. Preços a partir de $0.003.

## Output

A JSON response containing historical backtest results for the submitted strategy, likely including performance metrics such as total return, win rate, max drawdown, number of trades, and possibly a trade-by-trade breakdown or equity curve data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/losbeto-backtest-832d4472/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from losbeto-production-dd7c.up.railway.app](https://www.zero.xyz/host/losbeto-production-dd7c.up.railway.app/llms.txt)
