Skip to main content
GET
Hosted and self-hosted data depth — Hosted api.pmxt.dev calls require a PMXT API key. If you omit the key, SDK calls route through your local pmxt-core process and use venue-native APIs. fetchOHLCV returns normalized PriceCandle rows for venues whose implementation supports fetchOHLCV; history length, volume, and rate limits remain venue-specific. Check Feature Support & Compliance for the current matrix. Get your API key.

Use cases

Get hourly candles for a market

Path Parameters

exchange
enum<string>
required

The prediction market exchange to target.

Available options:
polymarket,
kalshi,
kalshi-demo,
limitless,
probable,
baozi,
myriad,
opinion,
metaculus,
smarkets,
polymarket_us,
gemini-titan,
hyperliquid,
suibets,
rain,
hunch,
router

Query Parameters

outcomeId
string
required
resolution
string

Required for candle aggregation

start
string<date-time>

Start of the time range

end
string<date-time>

End of the time range

limit
number

Maximum number of results to return

Response

200 - application/json

Fetch OHLCV response

success
boolean
Example:

true

error
object

Structured error envelope returned inside BaseResponse.error and ErrorResponse.error. Hosted-mode endpoints populate code, retryable, and optionally exchange / detail; legacy local-mode endpoints may still return only message.

data
object[]