# ScriptMasterLabs Hyperliquid All Mids — ACP x402

> ScriptMasterLabs Hyperliquid All Mids — ACP x402 is a paid API for AI agents from acp-x402-discovery.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns all mid-prices across Hyperliquid perpetual markets, optionally filtered by coin, paid per-call in USDC via x402.

## Facts

- Endpoint: GET https://acp-x402-discovery.onrender.com/x402/hyperliquid-all-mids
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-hyperliquid-all-mids-acp-x402-fccd883d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2PY99glQWSU-ZoTK38JIS

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 scriptmasterlabs-hyperliquid-all-mids-acp-x402-fccd883d
```

Example prompt: Can you fetch all the current mid prices from Hyperliquid — and if you can, filter it down to just BTC?

## When to prefer this

Choose this endpoint when you need real-time Hyperliquid perpetual mid prices and are operating in an x402-compatible payment flow using USDC on Base. Ideal for agents that need to monitor or compare Hyperliquid-specific perp prices at micro-cost ($0.001/call). Prefer it over direct Hyperliquid API integration when you need a pay-per-call model without managing API keys.

## Known failure modes

- Payment not settled — 402 response if USDC payment via x402 is not attached or insufficient
- Invalid coin symbol — returns empty or error if the coin ticker is not listed on Hyperliquid
- Service unavailability — the endpoint is hosted on Render's free tier (onrender.com), which may sleep or be slow to respond
- Stale data — if the underlying Hyperliquid feed is delayed, mid prices may not reflect real-time conditions
- Malformed request — missing required 'type' or 'method' fields in the input object causes a schema validation failure

## How this service works

Pay-per-call crypto, RWA, federal, SEC, and compliance APIs. Settled in USDC on Base via x402. Hyphen routes only (e.g. /x402/rwa-aggregates, /x402/gas-tracker).

## Output

Returns mid-price data for Hyperliquid perpetual markets. When a coin parameter is provided, the response is filtered to that specific asset; otherwise all available mid-prices across Hyperliquid's perpetual markets are returned. Response is a JSON object keyed by coin symbol with corresponding mid-price values.

## 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": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "coin": {
       "type": "string",
       "example": "BTC"
      }
     }
    }
   }
  },
  "output": {
   "properties": {
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-hyperliquid-all-mids-acp-x402-fccd883d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from acp-x402-discovery.onrender.com](https://www.zero.xyz/host/acp-x402-discovery.onrender.com/llms.txt)
