/trade/ohlcvtrade-ohlcvReturns OHLCV candles for a single trade pair by its internal UUID. interval defaults to 1h (accepts 1m | 3m | 5m | 15m | 30m | 1h | 2h | 4h | 6h | 12h | 1d | 3d | 1w | 1M). startTime and endTime are Unix-seconds timestamps; when omitted, endTime falls back to the current server time and startTime falls back to endTime − (interval × limit) so a bare request always returns a limit-sized window ending at now. limit caps the number of candles returned (1–1000, default 500).
| Name | Location | Details |
|---|---|---|
BearerAuth | Authorization header · bearer | JWT issued by the Honeycluster auth service for the `indexer` audience. Present as `Authorization: Bearer <token>`. |
| Name | Type | Default | Description |
|---|---|---|---|
tradePairId | string | ||
tokenSlug | string | ||
mptIssuanceId | string | ||
interval | enum<string> | "1h" | Available 1m3m5m15m30m1h2h4h |
startTime | integer | ||
endTime | integer | ||
limit | integer | 500 |
| Field | Type | Description |
|---|---|---|
items | object[] | |
items[]. | string | Trade pair identifier (UUID v4). |
items[]. | integer | Start of the candle interval, Unix-seconds. |
items[]. | string | Opening price (decimal string). |
items[]. | string | Highest price in the interval (decimal string). |
items[]. | string | Lowest price in the interval (decimal string). |
items[]. | string | Closing price (decimal string). |
items[]. | string | Total volume traded in the interval (decimal string). |
items[]. | number | Number of trades that make up the candle. |
{
"items": [
{
"tradePairId": "3c4a3de8-4218-400c-8c55-87dc27206753",
"bucket": 1745712000,
"open": "0.512",
"high": "0.518",
"low": "0.509",
"close": "0.514",
"volume": "128450.32",
"tradeCount": 312
}
]
}| Field | Type | Description |
|---|---|---|
message | string | The error message |
code | string | The error code |
issues | object[] | An array of issues that were responsible for the error |
issues[]. | string |
{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}| Field | Type | Description |
|---|---|---|
message | string | The error message |
code | string | The error code |
issues | object[] | An array of issues that were responsible for the error |
issues[]. | string |
{
"code": "UNAUTHORIZED",
"message": "Authorization not provided",
"issues": []
}| Field | Type | Description |
|---|---|---|
message | string | The error message |
code | string | The error code |
issues | object[] | An array of issues that were responsible for the error |
issues[]. | string |
{
"code": "FORBIDDEN",
"message": "Insufficient access",
"issues": []
}| Field | Type | Description |
|---|---|---|
message | string | The error message |
code | string | The error code |
issues | object[] | An array of issues that were responsible for the error |
issues[]. | string |
{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}| Field | Type | Description |
|---|---|---|
message | string | The error message |
code | string | The error code |
issues | object[] | An array of issues that were responsible for the error |
issues[]. | string |
{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}