Price Candles (OHLCV)
Returns OHLCV candlestick data from TimescaleDB metric history.
Each candle is an array: [timestamp_ms, open, high, low, close, volume24h].
volume24h is the rolling 24-hour volume at candle close, not per-interval volume.
Interval defaults and caps:
| Interval | Default range | Max range |
|---|---|---|
5m | 24 hours | 48 hours |
1h | 7 days | 14 days |
1d | 30 days | 90 days |
If the requested range exceeds the max, start is clamped forward (most recent candles are returned).
Authorization
ApiKeyAuth API key to authorize requests
In: header
Path Parameters
MongoDB ObjectId of the project
Query Parameters
Candle interval
"5m" | "1h" | "1d"Start timestamp (ISO 8601). Defaults to interval-dependent lookback from end.
date-timeEnd timestamp (ISO 8601). Defaults to now.
date-timeHistorical anchor timestamp (ISO 8601). Caps end and shifts the default lookback.
Must be in the past.
When used:
- If
endis not provided,atsets the end of the window - If
endis provided,atacts as a ceiling —endis capped to whichever is earlier - If
startis not provided, it defaults to the interval's default lookback beforeat
date-timeResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v2/projects/string/candles?interval=5m&at=2026-03-25T12%3A00%3A00Z"{
"status": 200,
"meta": {
"upgrade": {
"description": "string",
"url": "https://aixbt.tech/subscribe"
}
},
"data": {
"projectId": "507f1f77bcf86cd799439011",
"projectName": "Bitcoin",
"interval": "1h",
"candles": [
[
1709395200000,
0.0523,
0.0531,
0.0519,
0.0527,
1234567
]
]
}
}{
"error": "string",
"message": "string",
"code": "string",
"status": 0,
"data": null,
"meta": {},
"details": {},
"pagination": {
"page": 1,
"limit": 1,
"totalCount": 0,
"hasMore": true
},
"limitType": "minute",
"retryAfterMs": 0,
"limits": {
"minute": {
"limit": 0,
"remaining": 0,
"resetAt": "2019-08-24T14:15:22Z"
},
"day": {
"limit": 0,
"remaining": 0,
"resetAt": "2019-08-24T14:15:22Z"
}
},
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"error": "string",
"message": "string",
"code": "string",
"status": 0,
"data": null,
"meta": {},
"details": {},
"pagination": {
"page": 1,
"limit": 1,
"totalCount": 0,
"hasMore": true
},
"limitType": "minute",
"retryAfterMs": 0,
"limits": {
"minute": {
"limit": 0,
"remaining": 0,
"resetAt": "2019-08-24T14:15:22Z"
},
"day": {
"limit": 0,
"remaining": 0,
"resetAt": "2019-08-24T14:15:22Z"
}
},
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"error": "string",
"message": "string",
"code": "string",
"status": 0,
"data": null,
"meta": {},
"details": {},
"pagination": {
"page": 1,
"limit": 1,
"totalCount": 0,
"hasMore": true
},
"limitType": "minute",
"retryAfterMs": 0,
"limits": {
"minute": {
"limit": 0,
"remaining": 0,
"resetAt": "2019-08-24T14:15:22Z"
},
"day": {
"limit": 0,
"remaining": 0,
"resetAt": "2019-08-24T14:15:22Z"
}
},
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"error": "string",
"message": "string",
"code": "string",
"status": 0,
"data": null,
"meta": {},
"details": {},
"pagination": {
"page": 1,
"limit": 1,
"totalCount": 0,
"hasMore": true
},
"limitType": "minute",
"retryAfterMs": 0,
"limits": {
"minute": {
"limit": 0,
"remaining": 0,
"resetAt": "2019-08-24T14:15:22Z"
},
"day": {
"limit": 0,
"remaining": 0,
"resetAt": "2019-08-24T14:15:22Z"
}
},
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"error": "string",
"message": "string",
"code": "string",
"status": 0,
"data": null,
"meta": {},
"details": {},
"pagination": {
"page": 1,
"limit": 1,
"totalCount": 0,
"hasMore": true
},
"limitType": "minute",
"retryAfterMs": 0,
"limits": {
"minute": {
"limit": 0,
"remaining": 0,
"resetAt": "2019-08-24T14:15:22Z"
},
"day": {
"limit": 0,
"remaining": 0,
"resetAt": "2019-08-24T14:15:22Z"
}
},
"issues": [
{
"path": "string",
"message": "string"
}
]
}Rank History GET
Returns rank position history with scores over a time window. Only includes timestamps where the project was in the top 100. Default period is the last 7 days.
Project Metrics Snapshot GET
Point-in-time snapshot of project market metrics (price, volume, 24h change, derived fields like price-change-7d/14d/30d and ATH change percentage). Without `at`, returns the live metrics subdocument from the project record (sourced from CoinGecko by the metrics sync). With `at`, reads from Timescale `metric_log` (latest row ≤ `at` within a 2-hour lookback) and recomputes derived fields from `at - 7d / 14d / 30d` lookups.