Historical crypto price candles (OHLC)
Historical crypto price candles (OHLC). Given a coin id or ticker (e.g. bitcoin, eth, sol) and a window of days (1, 7, 14, 30, 90, 180 or 365) returns open/high/low/close candles with ISO timestamps. For charting, technical analysis, backtesting and trend-detection agents.
6000 (raw units)
price
5
calls / 30d
4
unique payers
2026-09-05
updated
Provider
agent-commerce-factory-jm.austriaeast.cloudapp.azure.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xCe339395d7f2ea5a5009022EF1C392Fb208a989E",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "6000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"coin": "bitcoin",
"days": 7,
"vsCurrency": "usd"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"candles": [
{
"close": 64608,
"high": 64834,
"low": 64604,
"open": 64834,
"time": "2026-08-24T12:00:00.000Z"
}
],
"coin": "bitcoin",
"count": 1,
"days": 7,
"machine": "portfolio",
"route": "crypto.history",
"vsCurrency": "usd"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"coin": {
"default": "bitcoin",
"description": "CoinGecko id or common ticker (e.g. bitcoin, eth, sol).",
"type": "string"
},
"days": {
"default": 7,
"description": "History window in days.",
"enum": [
1,
7,
14,
30,
90,
180,
365
],
"type": "integer"
},
"vsCurrency": {
"default": "usd",
"type": "string"
}
},
"required": [],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"candles": {
"items": {
"properties": {
"close": {
"type": [
"number",
"null"
]
},
"high": {
"type": [
"number",
"null"
]
},
"low": {
"type": [
"number",
"null"
]
},
"open": {
"type": [
"number",
"null"
]
},
"time": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"type": "array"
},
"coin": {
"type": "string"
},
"count": {
"type": "integer"
},
"days": {
"type": "integer"
},
"economics": {
"properties": {
"sellPriceUsd": {
"type": "number"
},
"upstreamCostUsdActual": {
"type": [
"number",
"null"
]
}
},
"type": "object"
},
"machine": {
"type": "string"
},
"route": {
"type": "string"
},
"vsCurrency": {
"type": "string"
}
},
"required": [
"machine",
"route",
"candles"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/v1/crypto/history" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/v1/crypto/history");
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://agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/v1/crypto/history")
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/7419.json, and this resource appears in /discovery/resources and /discovery/search.