# DEX Token Prices with OHLC Data

> DEX Token Prices with OHLC Data is a paid API for AI agents from x402-gateway-production.up.railway.app, paid per call via x402, $0.005000/call, status unknown (last checked 2026-09-13).

Fetches real-time DEX-derived spot prices and OHLC candlestick data for up to 200 tokens per request

## Facts

- Endpoint: POST https://x402-gateway-production.up.railway.app/api/token/prices
- Price: $0.005000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-production-up-railway-app-c24ec8be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o7qIPCqRDd6AUqkbkJuy8

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 x402-gateway-production-up-railway-app-c24ec8be -d '<json body>'
```

Example prompt: Can you get me the current DEX-derived prices and OHLC data for these tokens: ETH, BTC, UNI, AAVE, and LINK?

## When to prefer this

Use this endpoint when you need real-time, DEX-sourced token prices (not centralized exchange prices) with OHLC candlestick data, especially for DeFi tokens or long-tail assets that may not be listed on CEXs. Ideal for batch lookups of up to 200 tokens in a single call. Prefer this over CEX price feeds when DEX liquidity data or on-chain pricing is specifically required.

## Known failure modes

- Request exceeds 200 tokens — returns error indicating batch size limit
- Invalid or unrecognized token address/symbol — returns null or error for that token
- DEX liquidity data unavailable for obscure tokens — may return empty or stale data
- Payment not processed (x402 payment required) — returns 402 Payment Required
- Network timeout from DEX data aggregation — returns 503 or timeout error

## How this service works

Real-time DEX-derived token prices with OHLC data — up to 200 tokens per request

## Output

Returns real-time spot prices and OHLC (open, high, low, close) candlestick data sourced from decentralized exchange liquidity pools for each requested token, supporting up to 200 tokens per request.

## Example request

```json
{
 "tokens": [
  {
   "chain": "ethereum",
   "token_address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
  },
  {
   "chain": "ethereum",
   "token_address": "0x6B175474E89094C44Da98b954EedeAC495271d0F"
  },
  {
   "chain": "ethereum",
   "token_address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
  }
 ]
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "tokens"
     ],
     "properties": {
      "tokens": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "chain",
         "token_address"
        ],
        "properties": {
         "chain": {
          "type": "string",
          "example": "ethereum"
         },
         "token_address": {
          "type": "string",
          "example": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
         }
        },
        "additionalProperties": false
       },
       "example": [
        {
         "chain": "ethereum",
         "token_address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
        }
       ],
       "minItems": 1,
       "description": "Array of token objects with chain and token_address"
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-production-up-railway-app-c24ec8be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production.up.railway.app](https://www.zero.xyz/host/x402-gateway-production.up.railway.app/llms.txt)
