# x402stock via ZeroClick — DEX/On-Chain Perpetuals Market Data

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

Fetches on-chain perpetuals (perps) market data for a specific DEX and trading pair, paid per request in USDC via x402

## Facts

- Endpoint: GET https://agents.x402stock.xyz/api/v1/hip3/%7Bdex%7D/%7Bmarket%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-via-zeroclick-dex-on-chain-perpetuals-market-data-c6590cfc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8sEuJAUgC6zS8V59CD5Xe

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

Example prompt: What are the current price, funding rate, and open interest for the BTC-PERP market on dYdX right now? Pay per request is fine.

## 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 — ideal for AI agents that can autonomously pay per request in USDC via x402. Prefer this over centralized exchange APIs when the user specifically needs DEX or DeFi derivatives data.

## Known failure modes

- Unsupported DEX identifier returns 404 or empty result
- Unsupported market/trading pair returns error
- Payment failure in USDC via x402 blocks the request
- Rate limiting or endpoint unavailability returns 402 or 5xx
- Malformed path parameters result in 400 bad request

## 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 and trading pair, likely including current mark price, funding rate, open interest, and other relevant market statistics for that perp market.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-via-zeroclick-dex-on-chain-perpetuals-market-data-c6590cfc/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)
