# AgentBanks Market Data API

> AgentBanks Market Data API is a paid API for AI agents from agentbanks.vercel.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Returns real-time DeFi market data including token prices, gas fees, and network stats for Base ecosystem tokens

## Facts

- Endpoint: GET https://agentbanks.vercel.app/api/market-data
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentbanks-market-data-api-0d5d36ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0LqT0DtVSaFBVu-zc8lnt

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 agentbanks-market-data-api-0d5d36ca
```

Example prompt: What are the current prices and gas fees on Base for ETH, USDC, and AERO right now?

## When to prefer this

Use this endpoint when an AI agent needs real-time Base network market data — specifically token prices, gas costs, and DeFi metrics — for autonomous decision-making such as swap routing, portfolio valuation, or gas estimation. Prefer this over general crypto APIs when the focus is Base ecosystem tokens (ETH, BTC, VIRTUAL, AERO, USDC) and low per-call cost matters.

## Known failure modes

- Invalid token symbol in comma-separated list returns error or empty price data
- Network connectivity issues to Base RPC may cause stale or missing data
- Rate limiting if called too frequently without payment
- Unparseable token parameter format returns 400-level error

## How this service works

Register agents, route swaps, earn fees. The lowest-fee protocol for autonomous AI agents on Base.

## Output

A JSON object containing current token prices (for requested tokens like ETH, BTC, VIRTUAL, AERO, USDC), gas fee data, DeFi metrics, Base network identifier, and a Unix timestamp of when the data was fetched.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tokens": {
   "type": "string",
   "description": "Comma-separated tokens to include. Defaults to all. Options: eth, btc, virtual, aero, usdc."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "gas": {
   "type": "object"
  },
  "defi": {
   "type": "object"
  },
  "prices": {
   "type": "object"
  },
  "network": {
   "type": "string"
  },
  "timestamp": {
   "type": "integer"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentbanks-market-data-api-0d5d36ca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentbanks.vercel.app](https://www.zero.xyz/host/agentbanks.vercel.app/llms.txt)
