# Carbon Cashmere Signal Backtest API

> Carbon Cashmere Signal Backtest API is a paid API for AI agents from api.carbon-cashmere.de, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Runs strategy backtesting on 30-90 days of historical crypto data for a specified asset, returning full trade list, win rate, Sharpe ratio, max drawdown, profit factor, and statistical significance p-value.

## Facts

- Endpoint: GET https://api.carbon-cashmere.de/v1/signal-backtest/BTC
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-carbon-cashmere-de-6bc03ebc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bLS-lRoYXi0YBadEPmeTm

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 api-carbon-cashmere-de-6bc03ebc
```

Example prompt: Run a 60-day backtest on BTC using the analyst_v3 strategy and give me the win rate, Sharpe ratio, max drawdown, and whether the results are statistically significant.

## When to prefer this

Use this endpoint when you need a rigorous, statistically grounded backtest for one of 34 supported crypto assets using either the multi-factor analyst_v3 strategy or the contrarian funding_monitor strategy. Ideal for quantitative trading research, strategy validation, or comparing signal quality across lookback windows. Prefer this over generic backtesting tools when you need built-in cost accounting (fees + slippage), confidence scoring, regime labeling, and a p-value for significance testing.

## Known failure modes

- Invalid or unsupported coin symbol in path returns an error
- Unsupported 'days' value outside [30,60,90] returns validation error
- Unsupported 'strategy' value returns validation error
- Payment failure via x402 protocol blocks access
- Insufficient historical data for the requested period may return empty trades array
- Network timeout if upstream data source is unavailable

## How this service works

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

## Output

Returns a full backtest report for the specified crypto asset including: a per-trade list (date, direction, entry/exit prices, PnL%, confidence, regime, correctness), monthly aggregates (trades, win rate, gross/net PnL%), and a summary object with wins, losses, total PnL, Sharpe ratio, max drawdown %, profit factor, p-value, statistical significance flag, and cost breakdown (fees, slippage, roundtrip).

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "days": 30,
   "strategy": "analyst_v3"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "coin": "BTC",
  "days": 30,
  "summary": {
   "win_rate": 64.3,
   "sharpe_ratio": 1.35,
   "total_trades": 28,
   "profit_factor": 1.82
  },
  "strategy": "analyst_v3"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-carbon-cashmere-de-6bc03ebc/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)
