# Agent402 RWA Markets Data

> Agent402 RWA Markets Data is a paid API for AI agents from agent402.tools, paid per call via x402, $0.006/call, status unknown (last checked 2026-09-16).

Returns real-world asset (RWA) market data — stocks, ETFs, and commodities — ranked by market cap, volume, or filtered by specific asset IDs.

## Facts

- Endpoint: GET https://agent402.tools/api/rwa-markets
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-rwa-markets-data-bda854c5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fy8aCrnV1hqdW7VuNNfjF

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 agent402-rwa-markets-data-bda854c5
```

Example prompt: Pull the top 10 stocks ranked by market cap in USD from Agent402's RWA markets feed — I want to see price, 24h change, and market cap for each.

## When to prefer this

Use this endpoint when you need paginated, ranked real-world asset market data (stocks, ETFs, commodities) with 24h metrics including price, market cap, and volume — especially when you want to avoid signup/API-key friction and pay per call via USDC over x402 or MPP. Prefer this over direct CoinGecko access when operating as an autonomous agent with a crypto wallet identity.

## Known failure modes

- Invalid or unrecognized asset IDs in the 'ids' parameter return empty markets array
- Requesting more than 50 IDs at once may be rejected or truncated
- Invalid 'type' value (not stock/etf/commodity) may return all types or an error
- Invalid 'order' value falls back to default or returns an error
- Upstream CoinGecko data may be cached or delayed, reflected in the 'cached' flag
- Payment failure via x402/MPP results in 402 response before data is returned

## How this service works

Market data for tokenized real-world assets - tokenized stocks (Nvidia, Tesla, pre-IPO names), ETFs and commodities like gold - ranked by market cap or volume: price, market cap, 24h volume, 24h high/low and change, in your currency. Filter by type or a list of ids. Note these are the ONCHAIN wrappers' figures (what is tokenized and trading), not the underlying's exchange listing. Cached in-process for 60 seconds.

## Output

A JSON object containing pagination metadata (page, perPage, count), request context (currency, type, order, source, fetchedAt, cached flag), and a markets array where each item includes the asset's id, name, symbol, type, image URL, current price, 24h high/low, 24h price change (absolute and percentage), market cap, 24h volume, market cap change (absolute and percentage), and lastUpdated timestamp.

## 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",
     "properties": {
      "ids": {
       "type": "string",
       "description": "Comma-separated asset ids to fetch instead of a ranked page (max 50), e.g. gold,nvidia."
      },
      "page": {
       "type": "integer",
       "description": "Page number (default 1)."
      },
      "type": {
       "type": "string",
       "description": "stock | etf | commodity (default: all)."
      },
      "order": {
       "type": "string",
       "description": "market_cap_desc (default) | market_cap_asc | volume_desc | volume_asc."
      },
      "perPage": {
       "type": "integer",
       "description": "Rows per page (1-100, default 25)."
      },
      "currency": {
       "type": "string",
       "description": "vs currency (default usd)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "source",
      "fetchedAt",
      "cached",
      "currency",
      "type",
      "order",
      "page",
      "perPage",
      "count",
      "markets"
     ],
     "properties": {
      "page": {
       "type": "integer"
      },
      "type": {
       "type": "string"
      },
      "count": {
       "type": "integer"
      },
      "order": {
       "type": "string"
      },
      "cached": {
       "type": "boolean"
      },
      "source": {
       "type": "string"
      },
      "markets": {
       "type": "array",
       "items": {
        "type": "object"
       }
      },
      "perPage": {
       "type": "integer"
      },
      "currency": {
       "type": "string"
      },
      "fetchedAt": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "page": 1,
  "type": "stock",
  "count": 1,
  "order": "market_cap_desc",
  "cached": false,
  "source": "coingecko",
  "markets": [
   {
    "id": "circle-internet-group",
    "name": "Circle Internet Group",
    "type": "stock",
    "image": "https://coin-images.coingecko.com/coins/images/68595/large/crclon_160x160.png",
    "price": 89.14,
    "low24h": 86.22,
    "symbol": "CRCL",
    "high24h": 90.12,
    "currency": "usd",
    "change24h": 0.3088,
    "marketCap": 274735360,
    "volume24h": 32316372,
    "lastUpdated": "2026-09-02T18:49:30Z",
    "change24hPct": 0.34762,
    "marketCapChange24h": 3496406,
    "marketCapChange24hPct": 1.28905
   }
  ],
  "perPage": 10,
  "currency": "usd",
  "fetchedAt": "2026-09-02T18:50:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-rwa-markets-data-bda854c5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
