# Cambrian Perpetuals Risk Engine

> Cambrian Perpetuals Risk Engine is a paid API for AI agents from x402.cambrian.org, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Returns risk metrics and parameters for perpetual futures positions on DeFi protocols

## Facts

- Endpoint: GET https://x402.cambrian.org/api/v1/perp-risk-engine
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cambrian-perpetuals-risk-engine-e46905bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fEsRH9bzHW5fPE-S1eNSN

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 cambrian-perpetuals-risk-engine-e46905bc
```

Example prompt: What are the current risk parameters and liquidation thresholds for a leveraged BTC perpetuals position from the Cambrian risk engine?

## When to prefer this

Choose this endpoint when you need real-time perpetual futures risk parameters from the Cambrian risk engine, particularly for DeFi perpetuals protocols. Prefer this over generic market data endpoints when you specifically need risk metrics like liquidation thresholds, margin requirements, and position health data for perpetual futures.

## Known failure modes

- Missing or invalid query parameters return a 400 error
- Unsupported trading pair or market returns empty or error response
- Network timeout or service unavailability returns a 5xx error
- Payment of $0.05 USDC not fulfilled results in 402 Payment Required
- Stale data if the risk engine has not recently updated market parameters

## How this service works

Calculate Risk

## Output

Returns a JSON object containing risk metrics for perpetual futures markets, potentially including margin requirements, liquidation prices, funding rates, position health scores, and risk flags for the queried trading pair or position.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "additionalProperties": true
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cambrian-perpetuals-risk-engine-e46905bc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.cambrian.org](https://www.zero.xyz/host/x402.cambrian.org/llms.txt)
