Skip to main content
GET
/
2
/
pm
/
market
/
ohlcv
Get Prediction Market OHLCV
curl --request GET \
  --url https://pm-api-prod-eu.mobula.io/api/2/pm/market/ohlcv
{
  "data": [
    {}
  ]
}
Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.

Query Parameters

platform
enum<string>
required

Prediction market platform. Today only polymarket is supported; any other value returns 400.

Available options:
polymarket
Example:

"polymarket"

outcomeId
string
required

Polymarket outcome / token ID — uint256 decimal string (the ERC-1155 token id of the YES/NO/etc. side).

Pattern: ^[0-9]+$
Example:

"59855952379545476461266875939089074481171378466995213858930892770855011813551"

period
enum<string>
default:1h

Candle resolution.

Available options:
1s,
5s,
10s,
1m,
5m,
15m,
1h,
4h,
1d,
1w
from
integer<int64>

Start time in Unix milliseconds.

Required range: x >= 0
to
integer<int64>

End time in Unix milliseconds.

Required range: x >= 0
limit
integer
default:500

Page size (1-5000).

Required range: 1 <= x <= 5000
offset
integer
default:0

Pagination offset.

Required range: x >= 0

Response

200 - application/json

OHLCV candles

data
object[]