# Virae Strategy Compare API

> Virae Strategy Compare API is a paid API for AI agents from api.virae.ai, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Compares and ranks multiple prediction market trading strategies by PnL, win rate, fill rate, or settled count over a specified time range

## Facts

- Endpoint: POST https://api.virae.ai/api/x402/v1/simulations/compare
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/virae-strategy-compare-api-37420284
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ha4I9pXuRDhRMcWS9lyYc

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 virae-strategy-compare-api-37420284 -d '<json body>'
```

Example prompt: Compare my Virae strategies — keys 'momentum-v2', 'mean-revert-btc', and 'sports-nfl' — ranked by net PnL after fees over the last 30 days, with a notional size of $500 and only include strategies with at least 5 settled markets.

## When to prefer this

Use this endpoint when you need to compare two or more Virae prediction market strategies head-to-head with normalized PnL curves and a ranked leaderboard output. It is the right choice over the paginated strategy matrix endpoint when you have a specific set of strategy keys and want a direct ranked comparison rather than a broad exploratory query. Prefer this when evaluating strategies before capital allocation, auditing copy trading bots, or generating performance reports for a known strategy portfolio.

## Known failure modes

- Invalid or unknown strategy keys return empty rankings array
- strategyKeys array below minItems (1) or above maxItems (16) returns validation error
- Invalid enum values for pnlMode, curveRange, or rankingMetric return 400
- displayNotionalUsd of 0 or negative rejected by exclusiveMinimum constraint
- Insufficient settled markets for a strategy (below minimumSettledCount) causes that strategy to be excluded from rankings
- Payment failure or insufficient USDC balance returns 402

## How this service works

An AI-powered trading terminal and bot built for @Polymarket and @predictdotfun with real-time stats, instant execution, and smarter trading insights on web or Telegram. No CA yet.

## Output

Returns a JSON object with an 'ok' status flag, a ranked 'rankings' array containing compared strategy results (PnL curves, scores by chosen metric, coverage data), and a schema version identifier. Rankings are ordered by the selected metric (netPnl, winRate, fillRate, or settled count) and normalized to the specified notional USD amount.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "pnlMode": {
   "enum": [
    "strategy",
    "afterFees"
   ],
   "type": "string",
   "default": "afterFees"
  },
  "curveRange": {
   "enum": [
    "7d",
    "30d",
    "90d",
    "all"
   ],
   "type": "string",
   "default": "30d"
  },
  "strategyKeys": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "maxItems": 16,
   "minItems": 1
  },
  "rankingMetric": {
   "enum": [
    "netPnl",
    "winRate",
    "fillRate",
    "settled"
   ],
   "type": "string",
   "default": "netPnl"
  },
  "displayNotionalUsd": {
   "type": "number",
   "default": 100,
   "maximum": 100000,
   "exclusiveMinimum": 0
  },
  "minimumSettledCount": {
   "type": "integer",
   "default": 1,
   "minimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "rankings": [],
  "schemaVersion": "virae.x402.strategy-compare.v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/virae-strategy-compare-api-37420284/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.virae.ai](https://www.zero.xyz/host/api.virae.ai/llms.txt)
