# Cambrian Perpetual Risk Engine

> Cambrian Perpetual 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-15).

Returns risk metrics and analytics for perpetual futures positions on-chain, enabling autonomous agents to assess perp trading risk.

## Facts

- Endpoint: GET https://x402.cambrian.org/risk/perp-risk-engine
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cambrian-perpetual-risk-engine-1f1a0ae7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AM-X2aCTANvqCIeihzlWp

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-perpetual-risk-engine-1f1a0ae7
```

Example prompt: Can you check the current risk metrics for my ETH perpetual futures position — I want to know if I'm at risk of liquidation given current market conditions?

## When to prefer this

Choose this endpoint when an agent needs real-time or near-real-time risk assessment specifically for perpetual futures (perp) contracts on-chain, particularly when operating in DeFi contexts where automated liquidation risk monitoring or pre-trade risk checks are required. Prefer over generic market data APIs when the focus is on derivatives risk metrics rather than spot prices.

## Known failure modes

- Missing or invalid query parameters may return an empty or error response
- Unsupported market/asset symbol returns no data
- Payment not processed (x402 payment required) results in 402 response
- Rate limiting or upstream data unavailability causes timeout or partial response

## How this service works

Pay-per-use blockchain and social data for autonomous agents.

## Output

Returns a JSON object containing risk analytics for perpetual futures positions, likely including metrics such as margin health, liquidation price estimates, risk scores, and exposure data relevant to on-chain perpetual contracts.

## 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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cambrian-perpetual-risk-engine-1f1a0ae7/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)
