Skip to main content
GET
/
2
/
pm
/
market
/
ohlcv
Get prediction market OHLCV candles
curl --request GET \
  --url https://demo-api.mobula.io/api/2/pm/market/ohlcv
{
  "data": [
    {
      "t": 123,
      "o": 123,
      "h": 123,
      "l": 123,
      "c": 123,
      "v": 123,
      "tradesCount": 123
    }
  ],
  "pagination": {
    "page": 123,
    "offset": 123,
    "limit": 123,
    "pageEntries": 123
  },
  "hostname": "<string>",
  "took": 123
}
Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.

Query Parameters

platform
string
required
marketId
string
outcomeId
string
required
period
enum<string>
default:1h
Available options:
1s,
5s,
10s,
1m,
5m,
15m,
1h,
4h,
1d,
1w
from

Start time (Unix ms timestamp or ISO 8601 string). If omitted, returns the most recent candles.

to

End time (Unix ms timestamp or ISO 8601 string). Defaults to now.

limit
number
default:500
Required range: 1 <= x <= 1000
offset
number
default:0
Required range: x >= 0

Response

200 - application/json

OHLCV candles

data
object[]
pagination
object
hostname
string
took
number