# Ozmium Compare Edge API

> Ozmium Compare Edge API is a paid API for AI agents from ozmium.org, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Compares relative strength and directional edge between two crypto assets (pairs-trade spread analysis) or ranks a single asset's edge across all tracked markets

## Facts

- Endpoint: GET https://ozmium.org/v1/ideas/compare
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ozmium-compare-edge-api-54338c9a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cisDj52AXAsjOirHGmLZP

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 ozmium-compare-edge-api-54338c9a
```

Example prompt: Compare the trading edge between ETH and BTC right now — tell me which one is near the top of its recent range versus the bottom, and whether the spread favors a long/short pairs trade.

## When to prefer this

Use this endpoint when you need a quantitative pairs-trade signal between two crypto assets (relative strength spread, mean-reversion direction, long laggard / short leader recommendation) or when you need to rank a single asset's edge against the entire cross-category field. Prefer this over generic price feeds when you want a pre-computed edge signal rather than raw price data.

## Known failure modes

- Missing required 'a' query parameter — returns error or empty result
- Unknown/unsupported asset symbol — may return hasEdge false or error
- Payment not included or insufficient — x402 payment required error
- Network error reaching ozmium.org — connection timeout
- Single-asset mode called with unsupported ticker — no rank data returned

## How this service works

Compare edges. Two named assets (?a=ETH&b=BTC): the relative-strength / pairs-trade read- when one leg sits near the top of its own recent range while the other sits near its bottom, the spread is stretched and mean-reversion favors LONG the laggard / SHORT the leader- plus each leg's own directional edge. One asset (?a=SPCX): its edge RANK across the whole cross-category field and the single strongest market edge right now (is X better than any market?). Full details: GET /v1.

## Output

Returns a structured object with: mode (pair or single), per-leg data including symbol and hasEdge boolean, relative-strength/pairs-trade read indicating whether spread is stretched and which leg to long vs short, each leg's own directional edge, and (for single-asset mode) the asset's edge rank across all tracked markets plus whether it is the single strongest market edge currently.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "a": {
       "type": "string"
      },
      "b": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "a": {
         "type": "object",
         "properties": {
          "sym": {
           "type": "string"
          },
          "hasEdge": {
           "type": "boolean"
          }
         }
        },
        "b": {
         "type": "object",
         "properties": {
          "sym": {
           "type": "string"
          },
          "hasEdge": {
           "type": "boolean"
          }
         }
        },
        "mode": {
         "type": "string"
        }
       }
      },
      "network": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ozmium-compare-edge-api-54338c9a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ozmium.org](https://www.zero.xyz/host/ozmium.org/llms.txt)
