GET /v1/series
Updated
What does GET /v1/series do?
One or several metrics for one pair across a time range, at 1-minute (Ultra and pay-per-call), 5-minute, hourly or daily resolution. Returns one metric, or several, for a single pair across a time window, as an ordered list of points. Use it to chart a column over time or to pull a range for analysis.
The interval sets the resolution: 5m is the native window; 1h and 1d are aggregates. The from and to bounds are ISO-8601 timestamps.
Each point carries the metric value plus the quality bitmask for that window, so a chart can grey out or drop windows whose measurement was contaminated.
Authentication
API key required. Set $BF to the API base and pass your key in $BLACKFORGE_API_KEY.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
exchange | string | Yes | The venue, e.g. binance. |
symbol | string | Yes | The pair, in the venue’s own symbol form, e.g. BTCUSDT. |
metric | string | No | One metric key from GET /v1/catalog. Send this OR metrics, not both. The response is { metric, exchange, symbol, points: [{ ts, value, quality, qualityAll }] }. |
metrics | string | No | Several metric keys from GET /v1/catalog, comma-separated (up to 50). Send this OR metric, not both. The response is { metrics, exchange, symbol, interval, points: [{ ts, values: { <metric>: value }, quality, qualityAll }] }: one point per bucket with every metric in it. Each value is exactly what that metric returns on its own, and the rows charged are the same as one call per metric. Metrics outside your plan are left out of metrics and named in the X-BlackForge-Columns-Omitted header. |
from | string | Yes | |
to | string | Yes | |
interval | string (1m | 5m | 1h | 1d) | Yes |
Parameter shapes from the live OpenAPI document.
Example request
curl -H "x-api-key: $BLACKFORGE_API_KEY" \
"$BF/v1/series?exchange=binance&symbol=BTCUSDT&metric=price&interval=5m&from=2026-11-23T15:00:33Z&to=2026-11-23T16:00:33Z"Example response
{
"metric": "price",
"exchange": "binance",
"symbol": "BTCUSDT",
"points": [
{
"ts": 1795446300000,
"value": 63162.8,
"quality": 0,
"qualityAll": 0
},
{
"ts": 1795446600000,
"value": 62945.26,
"quality": 0,
"qualityAll": 0
},
{
"ts": 1795446900000,
"value": 63069.38,
"quality": 0,
"qualityAll": 0
},
{
"ts": 1795447200000,
"value": 63164.17,
"quality": 0,
"qualityAll": 0
},
"…"
]
}Several metrics in one call
Pass metrics instead of metric to read several columns of the same pair in one call: up to 50 comma-separated keys. Send exactly one of metric and metrics. The rows charged are the same as one call per metric, and the call counts once against your rate limit.
Each point is one bucket, oldest first, with every metric in its values object. Each value is exactly what that metric returns on its own, and a metric with no point in a bucket is null there. Keys outside your plan are left out of metrics and named in the X-BlackForge-Columns-Omitted header. One call returns at most 50,000 values (buckets times metrics); past that it keeps the newest buckets and sets truncated.
curl -H "x-api-key: $BLACKFORGE_API_KEY" \
"$BF/v1/series?exchange=binance&symbol=BTCUSDT&metrics=price,buyTradeVol,sellTradeVol&interval=5m&from=2026-11-23T15:00:33Z&to=2026-11-23T16:00:33Z"{
"metrics": [
"price",
"buyTradeVol",
"sellTradeVol"
],
"exchange": "binance",
"symbol": "BTCUSDT",
"interval": "5m",
"points": [
{
"ts": 1795446300000,
"values": {
"price": 63162.8,
"buyTradeVol": 4574493.746398491,
"sellTradeVol": 3600278.3735287758
},
"quality": 0,
"qualityAll": 0
},
{
"ts": 1795446600000,
"values": {
"price": 62945.26,
"buyTradeVol": 16517748.617361847,
"sellTradeVol": 5201235.044994088
},
"quality": 0,
"qualityAll": 0
},
{
"ts": 1795446900000,
"values": {
"price": 63069.38,
"buyTradeVol": 3402614.6831976017,
"sellTradeVol": 2673960.205507602
},
"quality": 0,
"qualityAll": 0
},
{
"ts": 1795447200000,
"values": {
"price": 63164.17,
"buyTradeVol": 3133959.0692058,
"sellTradeVol": 3867368.3097264976
},
"quality": 0,
"qualityAll": 0
},
"…"
]
}Returns
A JSON object with the echoed metric, exchange and symbol, and a points array. Each point has ts (epoch milliseconds), value, and the window’s quality flags. With metrics, the object echoes metrics (the keys served, in your order) and interval, and each point carries a values object with every metric in place of value.
Responses and errors
| Status | When |
|---|---|
400 | A required parameter is missing, both or neither of metric and metrics are sent, a metric key is unknown, metrics names more than 50 keys, or the interval is not one of 1m, 5m, 1h, 1d. |
401 | The x-api-key header is missing or not a valid key. |
402 | No key and no x402 payment: the pay-per-call challenge is returned. |
Columns it returns
Each column is defined on its own page. Last price, Resting-level lifetime. See the full metric reference.