Skip to main content
GET
/
api
/
{exchange}
/
fetchOHLCV
curl --request GET \
  --url https://api.pmxt.dev/api/{exchange}/fetchOHLCV \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "error": {
    "message": "<string>"
  },
  "data": [
    {
      "timestamp": 123,
      "open": 123,
      "high": 123,
      "low": 123,
      "close": 123,
      "volume": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Required when calling the hosted API directly (curl, requests, fetch). SDK users pass credentials via constructor params instead.

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

Query Parameters

id
string
required
resolution
enum<string>

Required for candle aggregation

Available options:
1m,
5m,
15m,
1h,
6h,
1d
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 O H L C V response

success
boolean
Example:

true

error
object
data
object[]