Crypto Prices
Discover and request historical cryptocurrency OHLC price data.
tabs
[{"language":"text","code":"GET /api/v1/crypto/prices/{symbol}"},{"language":"bash","code":"curl -H \"x-api-key: YOUR_API_KEY\" \\\n \"https://chartinspect.com/api/v1/crypto/prices/list\""},{"language":"json","code":"{\n \"success\": true,\n \"availableSymbols\": [\"BTC\", \"ETH\"],\n \"count\": 2\n}"}]The live list is authoritative. Internal hourly and ranking files are excluded because they are not public symbol endpoints.
#Request Prices
curl -H "x-api-key: YOUR_API_KEY" \
"https://chartinspect.com/api/v1/crypto/prices/BTC?days=30&limit=30"Supported parameters are days, limit, startDate, and endDate. Either date bound may be supplied independently. Both bounds are inclusive UTC calendar dates. days is anchored to the newest available daily candle, not wall-clock time, so days=1 returns the latest candle when data exists.
#Response
json
{
"success": true,
"symbol": "BTC",
"name": "Bitcoin",
"count": 30,
"data": [
{
"timestamp": 1787529600,
"open": 0,
"high": 0,
"low": 0,
"close": 0,
"volume": 0
}
],
"metadata": {
"lastUpdated": null,
"dataRange": { "start": "...", "end": "..." },
"apiVersion": "v1"
}
}Numbers are placeholders showing the schema. Price files can use an ISO date or a Unix-seconds timestamp; metadata normalizes the reported range.
Was this page helpful?