Pear Exchange
Charts

GET /api/events/{eventId}/history

Fans out to Polymarket prices-history and Kalshi candlesticks in parallel and stitches the results into a normalized candle response. Polymarket markets return as pointsOnly (o=h=l=c per row, v=null) since the upstream only exposes mid/last points. Cached per (venue, marketId, interval, from, to) in Redis; TTL scales with interval (30s for 1m, 1h for 1d).

GET
/api/events/{eventId}/history

Path Parameters

eventId*string

Query Parameters

interval?string
Default"1h"
Value in"1m" | "5m" | "1h" | "1d" | "1w"
from?integer

Unix seconds. Defaults to now - lookback window for the chosen interval.

to?integer

Unix seconds. Defaults to now.

venue?string
Value in"polymarket" | "kalshi"

Response Body

curl -X GET "https://api.pear.trade/api/events/string/history"
Empty
Empty