# Carbon & Cashmere Strategy Backtester

> Carbon & Cashmere Strategy Backtester is a paid API for AI agents from api.carbon-cashmere.de, paid per call via x402, $0.15/call, status unknown (last checked 2026-09-14).

Runs a backtest of a crypto trading strategy over a specified number of days and returns win rate, Sharpe ratio, and trade count.

## Facts

- Endpoint: POST https://api.carbon-cashmere.de/v1/backtest
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/carbon-cashmere-strategy-backtester-98f1ead0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X3JX0q1Rs7y88hR3F3gEu

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 carbon-cashmere-strategy-backtester-98f1ead0 -d '<json body>'
```

Example prompt: Run a backtest of the fear_greed_contrarian strategy on BTC over the last 90 days and tell me the win rate and Sharpe ratio.

## When to prefer this

Use this endpoint when you need to historically validate a specific crypto trading strategy before deploying it, particularly when you want quantitative metrics like Sharpe ratio and win rate. Prefer this over real-time signal endpoints when the goal is retrospective strategy evaluation rather than live decision-making.

## Known failure modes

- Invalid or unsupported coin symbol returns an error or empty result
- Malformed params string causes a 400 bad request
- Unsupported strategy name returns an error
- Insufficient historical data for the requested day range
- Payment failure (x402) blocks the request before execution
- Very short day windows may yield statistically insignificant results

## How this service works

Professional crypto market intelligence. Real-time prices, signals, and market scoring.

## Output

Returns a JSON object containing the coin tested, number of days in the backtest window, the strategy name, and a summary with win rate (percentage), Sharpe ratio, and total number of trades executed during the period.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "coin": "BTC",
  "days": 90,
  "summary": {
   "win_rate": 66.7,
   "sharpe_ratio": 1.5,
   "total_trades": 15
  },
  "strategy": "fear_greed_contrarian"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/carbon-cashmere-strategy-backtester-98f1ead0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.carbon-cashmere.de](https://www.zero.xyz/host/api.carbon-cashmere.de/llms.txt)
