OHLCV candles for a token - supports 1d, 7d, 14d, 30d, 90d, 365d ranges
OHLCV candles for a token - supports 1d, 7d, 14d, 30d, 90d, 365d ranges
1000 (raw units)
price
1
calls / 30d
1
unique payers
2026-09-03
updated
Provider
defi-api.agenticfi.wtf · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xB3E9391F04f791462Ed2a1ebAfaBE254d7Afe3a5",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"category": "defi-data",
"discoverable": true,
"info": {
"input": {
"method": "GET",
"pathParams": {
"id": "required (example: bitcoin)"
},
"queryParams": {
"days": "optional (example: 30)",
"id": "required (example: bitcoin)"
},
"type": "http"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"pathParams": {
"properties": {
"id": {
"description": "Required. CoinGecko token ID.\nTry one of these 10 examples: bitcoin, ethereum, solana, chainlink, uniswap, aave, maker, dogecoin, pepe, arbitrum",
"title": "id (required)",
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"queryParams": {
"properties": {
"days": {
"description": "Optional. Number of days (1, 7, 14, 30, 90, 365) Examples: 1, 7, 30, 365",
"title": "days (optional)",
"type": "string"
},
"id": {
"description": "Required. CoinGecko token ID.\nTry one of these 10 examples: bitcoin, ethereum, solana, chainlink, uniswap, aave, maker, dogecoin, pepe, arbitrum",
"title": "id (required)",
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"pathParams",
"method"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
},
"tags": [
"ohlcv",
"price-history",
"candles"
]
}
}Use it
curl
curl "https://defi-api.agenticfi.wtf/api/token/price-history/ethereum" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://defi-api.agenticfi.wtf/api/token/price-history/ethereum");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://defi-api.agenticfi.wtf/api/token/price-history/ethereum")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/14488.json, and this resource appears in /discovery/resources and /discovery/search.