v1
latestOpenAPI 3.1.0UNLICENSED2026-07-26216788.0 KBPrices
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
Example request
{
"startTime": "2023-01-15T01:30:15.01Z",
"endTime": "2023-01-15T01:30:15.01Z"
}Response
Success
Example response
{
"prices": [
{
"timestamp": "2023-01-15T01:30:15.01Z"
}
],
"priceCandleSticks": [
{
"timestamp": "2023-01-15T01:30:15.01Z"
}
]
}