# claw402 Twelve Data Exchange Rate (x402)

> claw402 Twelve Data Exchange Rate (x402) is a paid API for AI agents from claw402.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns the current exchange rate for a given currency pair symbol via the Twelve Data API, payable per-call with USDC using the x402 protocol.

## Facts

- Endpoint: GET https://claw402.ai/api/v1/twelvedata/exchange-rate
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/claw402-twelve-data-exchange-rate-x402-c4102fd5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PzvSN9dmc_rBx4mpMEE_i

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 claw402-twelve-data-exchange-rate-x402-c4102fd5
```

Example prompt: What's the current exchange rate for EUR/USD? Use the Twelve Data exchange rate endpoint and pay with USDC — no API key needed.

## When to prefer this

Use this endpoint when you need a quick, one-off forex or crypto exchange rate lookup without setting up API keys or registrations, and you can pay $0.002 USDC per call via a crypto wallet using the x402 micropayment protocol. It is ideal for AI agents that need programmatic, pay-as-you-go financial data access with no subscription overhead.

## Known failure modes

- Missing or invalid 'symbol' query parameter returns empty or error response
- Insufficient USDC balance in wallet causes payment failure and no data returned
- Unsupported currency pair symbol returns empty data array
- Network timeout or upstream Twelve Data API unavailability causes failure
- Malformed x402 payment header results in 402 Payment Required error

## How this service works

Backed by vergex.trade. Pay for any API with USDC. No API keys. No registration. Just a wallet.

## Output

A JSON response containing the exchange rate data for the requested currency pair symbol, sourced from Twelve Data. The response includes a status code and a data payload with the rate information.

## 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": {
      "symbol": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "code": 0,
  "data": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/claw402-twelve-data-exchange-rate-x402-c4102fd5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from claw402.ai](https://www.zero.xyz/host/claw402.ai/llms.txt)
