# x402stock DEX On-Chain Perpetuals Data via ZeroClick

> x402stock DEX On-Chain Perpetuals Data via ZeroClick is a paid API for AI agents from agents.x402stock.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Retrieves on-chain perpetuals (perps) market data for a specified decentralized exchange (DEX), including pricing, funding rates, and related metrics, paid per-request in USDC via x402.

## Facts

- Endpoint: GET https://agents.x402stock.xyz/api/v1/hip3/%7Bdex%7D
- 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-dex-on-chain-perpetuals-data-via-zeroclick-eaa9f26b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uDdtrAyWgK01M_7ubM6e9

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-dex-on-chain-perpetuals-data-via-zeroclick-eaa9f26b
```

Example prompt: Pull the current on-chain perpetuals market data for dYdX from x402stock — I want to see the latest prices and funding rates for that DEX.

## When to prefer this

Choose this endpoint when you need real-time on-chain perpetuals data from a specific decentralized exchange without setting up API keys or accounts. It is ideal for AI agents that need autonomous, pay-per-use access to DeFi derivatives data, especially when comparing funding rates or prices across DEX platforms. Prefer this over centralized exchange APIs when the user specifically cares about on-chain or DeFi perp markets.

## Known failure modes

- Invalid or unsupported DEX identifier returns an error or empty response
- Payment failure if insufficient USDC balance via x402
- DEX not in the supported catalog returns a 404 or not-found error
- Rate limiting or timeout if the on-chain data source is slow
- Stale data if the underlying DEX feed is temporarily unavailable

## How this service works

Market and economic data for AI agents — US stocks, ETFs and options, forex, crypto and on-chain perps, energy commodities (crude, natural gas, gasoline), US and global macro (Fed funds, CPI/PCE, jobs, GDP, Treasury debt & yields, World Bank indicators), SEC filings, congressional trades, and market sentiment. No API keys, no accounts. Pay per request in USDC via x402 or MPP. This server is a pay-per-use, transparent proxy in front of x402stock's own API: it handles identity, payment, and proxying. Agents can purchase autonomously or with their human's approval. This document is the source of truth for agents: it lists the complete verified paid surface with each operation's live price in its x-payment-info. Endpoints not listed here are not part of the supported catalog. The live catalog at /manifest.json is authoritative for prices and any free included units (prices[].includedUnits) - some meters include free usage per account before any charge.

## Output

Returns on-chain perpetuals market data for the specified DEX, potentially including current contract prices, funding rates, open interest, and other trading metrics relevant to that exchange's perpetual futures markets.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-dex-on-chain-perpetuals-data-via-zeroclick-eaa9f26b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.x402stock.xyz](https://www.zero.xyz/host/agents.x402stock.xyz/llms.txt)
