# AgenticFi OHLCV Price History

> AgenticFi OHLCV Price History is a paid API for AI agents from defi-api.agenticfi.wtf, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns OHLCV candlestick price history for a token on Ethereum over configurable day ranges (1, 7, 14, 30, 90, or 365 days)

## Facts

- Endpoint: GET https://defi-api.agenticfi.wtf/api/token/price-history/ethereum
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenticfi-ohlcv-price-history-391ff47b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f8wT1Lyhb2cuwQxMynJij

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 agenticfi-ohlcv-price-history-391ff47b
```

Example prompt: Can you pull the 30-day OHLCV price history for Ethereum using the CoinGecko token ID 'ethereum'? I want to see the open, high, low, close, and volume candles over the last month.

## When to prefer this

Use this endpoint when you need structured OHLCV candlestick data for DeFi or mainstream crypto tokens identified by CoinGecko IDs, especially when building charts, running technical analysis, or backtesting strategies. Prefer this over generic market data APIs when you need pay-per-call pricing with no subscription and support for DeFi-native tokens like uniswap, aave, pepe, or arbitrum.

## Known failure modes

- Invalid or unrecognized CoinGecko token ID returns an error or empty result
- Unsupported 'days' value outside allowed set (1,7,14,30,90,365) may return an error
- Payment failure via x402 protocol results in 402 response blocking data access
- Token not listed on CoinGecko returns no data
- Network timeout on slow upstream CoinGecko data fetch

## How this service works

OHLCV candles for a token - supports 1d, 7d, 14d, 30d, 90d, 365d ranges

## Output

Returns an array of OHLCV candlestick data points for the requested token over the specified day range, each containing open, high, low, close prices and volume with associated timestamps, sourced from CoinGecko.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "pathParams",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "title": "id (required)",
       "description": "Required. CoinGecko token ID.\nTry one of these 10 examples: bitcoin, ethereum, solana, chainlink, uniswap, aave, maker, dogecoin, pepe, arbitrum"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "title": "id (required)",
       "description": "Required. CoinGecko token ID.\nTry one of these 10 examples: bitcoin, ethereum, solana, chainlink, uniswap, aave, maker, dogecoin, pepe, arbitrum"
      },
      "days": {
       "type": "string",
       "title": "days (optional)",
       "description": "Optional. Number of days (1, 7, 14, 30, 90, 365) Examples: 1, 7, 30, 365"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenticfi-ohlcv-price-history-391ff47b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-api.agenticfi.wtf](https://www.zero.xyz/host/defi-api.agenticfi.wtf/llms.txt)
