Fetch historical OHLCV (candlestick) price data for a specific market outcome.

get/api/{exchange}/fetchOHLCV

Request

  • Base URL
    https://api.pmxt.dev
  • URL
    https://api.pmxt.dev/api/{exchange}/fetchOHLCV
  • Auth
    none required

Path parameters

exchange'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'suibets' | 'rain' | 'hunch' | 'router' required

The prediction market exchange to target.

Query parameters

outcomeIdstring required
resolutionstring

Required for candle aggregation

startstring date-time

Start of the time range

endstring date-time

End of the time range

limitnumber

Maximum number of results to return

Response

Fetch OHLCV response

successboolean

Example response

{
  "success": true
}

Changes

    • info

      added the new enum value gemini-titan to the path request parameter exchange

    • info

      added the new enum value metaculus to the path request parameter exchange

    • info

      added the new enum value polymarket_us to the path request parameter exchange

    • info

      added the new enum value router to the path request parameter exchange

    • info

      added the new enum value smarkets to the path request parameter exchange

    • info

      added the new enum value suibets to the path request parameter exchange

    • breaking

      removed the enum value gemini-titan from the path request parameter exchange

    • breaking

      removed the enum value metaculus from the path request parameter exchange

    • breaking

      removed the enum value polymarket_us from the path request parameter exchange

    • breaking

      removed the enum value router from the path request parameter exchange

    • breaking

      removed the enum value smarkets from the path request parameter exchange

    • breaking

      removed the enum value suibets from the path request parameter exchange