Sandbox version
For experimental use only. Proceed with caution.
trades
Get OHLCV candles for a trade pair
get
/trade/ohlcv
operationId: trade-ohlcv

Returns 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).

Unlock protected endpoints

Enter your Bearer token once to enable every protected route in this API reference.

HTTP bearer

Saved for this browser tab only. The credential is never sent until you test an endpoint.

Authorizations
NameLocationDetails
BearerAuthAuthorization header · bearerJWT issued by the Honeycluster auth service for the `indexer` audience. Present as `Authorization: Bearer <token>`.
Query Parameters
NameTypeDefaultDescription
tradePairId
string
tokenSlug
string
mptIssuanceId
string
interval
enum<string>"1h"
Available
1m3m5m15m30m1h2h4h
startTime
integer
endTime
integer
limit
integer500
Responses
200
application/json
Successful response
FieldTypeDescription
items
object[]
items[].tradePairId
string
Trade pair identifier (UUID v4).
items[].bucket
integer
Start of the candle interval, Unix-seconds.
items[].open
string
Opening price (decimal string).
items[].high
string
Highest price in the interval (decimal string).
items[].low
string
Lowest price in the interval (decimal string).
items[].close
string
Closing price (decimal string).
items[].volume
string
Total volume traded in the interval (decimal string).
items[].tradeCount
number
Number of trades that make up the candle.
Example
Json
{
  "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
    }
  ]
}
400
application/json
Invalid input data
FieldTypeDescription
message
string
The error message
code
string
The error code
issues
object[]
An array of issues that were responsible for the error
issues[].message
string
Example
Json
{
  "code": "BAD_REQUEST",
  "message": "Invalid input data",
  "issues": []
}
401
application/json
Authorization not provided
FieldTypeDescription
message
string
The error message
code
string
The error code
issues
object[]
An array of issues that were responsible for the error
issues[].message
string
Example
Json
{
  "code": "UNAUTHORIZED",
  "message": "Authorization not provided",
  "issues": []
}
403
application/json
Insufficient access
FieldTypeDescription
message
string
The error message
code
string
The error code
issues
object[]
An array of issues that were responsible for the error
issues[].message
string
Example
Json
{
  "code": "FORBIDDEN",
  "message": "Insufficient access",
  "issues": []
}
404
application/json
Not found
FieldTypeDescription
message
string
The error message
code
string
The error code
issues
object[]
An array of issues that were responsible for the error
issues[].message
string
Example
Json
{
  "code": "NOT_FOUND",
  "message": "Not found",
  "issues": []
}
500
application/json
Internal server error
FieldTypeDescription
message
string
The error message
code
string
The error code
issues
object[]
An array of issues that were responsible for the error
issues[].message
string
Example
Json
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Internal server error",
  "issues": []
}