v1

latestOpenAPI 3.1.0UNLICENSED2026-07-26216788.0 KB
Prices

GetHistoricalPrices

Returns OHLC candlestick data for one market over a time range.

Unlike most other endpoints, market only accepts the numeric market_id form of MarketSelector.

post/price_service.v1.PriceService/GetHistoricalPrices

Headers

Connect-Protocol-Version1 required

Define the version of the Connect protocol. If omitted, use 1.

Connect-Timeout-Msnumber

Define the timeout, in ms

Request body

startTimestring date-time
endTimestring date-time
limitinteger

Accepted but currently ignored by the server; no limit is applied.

intervalstring

Candle interval. Supported values: 1S, 1, 60, 1D, 1W, 1M.

Example request

{
  "startTime": "2023-01-15T01:30:15.01Z",
  "endTime": "2023-01-15T01:30:15.01Z"
}

Response

Success

totalCountinteger

Always 0. Not populated by this endpoint.

Example response

{
  "prices": [
    {
      "timestamp": "2023-01-15T01:30:15.01Z"
    }
  ],
  "priceCandleSticks": [
    {
      "timestamp": "2023-01-15T01:30:15.01Z"
    }
  ]
}