# Paygentic Hyperliquid Perp Pre-Trade Risk Check

> Paygentic Hyperliquid Perp Pre-Trade Risk Check is a paid API for AI agents from api.discoverdmc.cloud, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12).

Calculates pre-trade risk metrics for a Hyperliquid perpetual futures position, including liquidation price, slippage, funding cost, and risk flags.

## Facts

- Endpoint: GET https://api.discoverdmc.cloud/risk/perp?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/paygentic-hyperliquid-perp-pre-trade-risk-check-43b06501
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E0M74q0ooLn2DEn01w-jM

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 paygentic-hyperliquid-perp-pre-trade-risk-check-43b06501
```

Example prompt: Before I open a long on ETH with 10x leverage and $25,000 notional on Hyperliquid, can you run a pre-trade risk check and tell me my liquidation price, how far that is in daily volatility, expected slippage, and any risk flags?

## When to prefer this

Use this endpoint when an agent needs to perform pre-trade risk analysis specifically for Hyperliquid perpetual futures, including both crypto perps and HIP-3 stock/index perps. It is uniquely suited for scenarios where you need liquidation distance expressed in volatility-normalized terms alongside slippage and funding cost in a single call. Prefer this over generic market data endpoints when the user is about to enter a leveraged position and needs a holistic risk snapshot, not just a price quote.

## Known failure modes

- Invalid or unsupported coin symbol returns an error — must be a valid Hyperliquid market (e.g. BTC, ETH) or HIP-3 market (e.g. xyz:NVDA)
- Leverage value exceeding the market maximum returns a validation error
- size_usd below 10 or above 5,000,000 returns an out-of-range error
- Payment failure or insufficient USDC balance returns a 402 Payment Required
- Hyperliquid order book unavailable may cause timeout or stale data errors
- Invalid side value (not 'long' or 'short') returns a schema validation error

## How this service works

Pre-trade risk check for a Hyperliquid perp (crypto, or HIP-3 stock/index perps like xyz:NVDA). Returns liquidation price and distance in daily volatility, slippage vs the live book, funding cost, liquidity and risk flags. Neutral calculation, not advice. Inputs: coin, side (long|short), size_usd, leverage.

## Output

Returns a structured risk report including: calculated liquidation price for the position, distance to liquidation expressed in daily volatility units, estimated slippage versus the live Hyperliquid order book, annualized or periodic funding cost, liquidity depth metrics, and any risk flags (e.g. thin book, high funding, near liquidation). Framed as a neutral calculation, not trading advice.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "coin",
      "side",
      "size_usd",
      "leverage"
     ],
     "properties": {
      "coin": {
       "type": "string",
       "description": "Hyperliquid market, e.g. BTC, ETH, or a HIP-3 market like xyz:NVDA"
      },
      "side": {
       "enum": [
        "long",
        "short"
       ],
       "type": "string",
       "description": "Position direction"
      },
      "leverage": {
       "type": "string",
       "description": "Integer leverage, 1 to the market maximum"
      },
      "size_usd": {
       "type": "string",
       "description": "Position notional in USD, 10 to 5000000"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/paygentic-hyperliquid-perp-pre-trade-risk-check-43b06501/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.discoverdmc.cloud](https://www.zero.xyz/host/api.discoverdmc.cloud/llms.txt)
