# x402stock Perpetual Futures Market Data

> x402stock Perpetual Futures Market Data is a paid API for AI agents from x402stock.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns live state of every perpetual-futures market on Hyperliquid DEX, including mark/oracle prices, funding rates, open interest, and 24h volume for all coins in a single call.

## Facts

- Endpoint: GET https://x402stock.xyz/api/v1/perps
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-perpetual-futures-market-data-fe8ecf29
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gfnSwZdm6omkcjaeprFn1

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 x402stock-perpetual-futures-market-data-fe8ecf29
```

Example prompt: Pull the live snapshot of all perpetual futures markets on Hyperliquid — I want to see funding rates, open interest, mark and oracle prices, and 24h volume for every coin right now.

## When to prefer this

Use this endpoint when you need comprehensive perpetual futures data — funding rates, open interest, and leverage — that is absent from spot market feeds. Ideal for DeFi trading strategies, funding rate arbitrage research, or monitoring all Hyperliquid perp markets in a single call without an API key. Prefer over spot feeds when derivatives-specific metrics are required.

## Known failure modes

- Payment required (402) if x402 payment header not included
- Upstream Hyperliquid DEX data unavailable causing stale or missing data
- Rate limiting if called too frequently
- Null values for some per-coin fields if market data is temporarily unavailable

## How this service works

Live state of every perpetual-futures market in one call: per coin the mark and oracle price, hourly funding rate with annualized APR, premium, open interest, max leverage, previous-day price, and 24h USD and base volume. Native crypto-derivatives data — funding and open interest are perp-only, absent from any spot feed. Free on-chain DEX data (venue: Hyperliquid), no key. From x402stock

## Output

A JSON array of all perpetual futures markets on Hyperliquid, each entry containing: coin symbol, mark price, oracle price, mid price, previous day price, hourly funding rate, annualized funding APR, premium, open interest, max leverage, 24h USD volume, and 24h base volume. Also includes metadata: source, venue, timestamp, market type, and total count.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {}
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "as_of": "2026-06-04T00:00:00.000Z",
  "count": 2,
  "perps": [
   {
    "coin": "BTC",
    "premium": -0.0003457543,
    "mid_price": 63606.5,
    "mark_price": 63606,
    "max_leverage": 40,
    "oracle_price": 63629,
    "open_interest": 31304.105,
    "day_volume_usd": 6772680481.63,
    "prev_day_price": 64583,
    "day_volume_base": 106799.6,
    "funding_apr_percent": 10.95,
    "funding_rate_hourly": 0.0000125
   }
  ],
  "venue": "hyperliquid",
  "market": "perp",
  "source": "x402stock"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-perpetual-futures-market-data-fe8ecf29/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402stock.xyz](https://www.zero.xyz/host/x402stock.xyz/llms.txt)
