> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: "Get market price history"
description: "Get historical price data with OHLC aggregation"
api: "GET /api/v1/markets/{id}/prices"
gridGap: 30
---

<Aside full>
  <RequestExample>
    ```bash title="cURL" lines=false
    curl -X GET "https://api.adjacent.markets/api/v1/markets/<id>/prices" \
      -H "Authorization: Bearer <token>"
    ```
  </RequestExample>
</Aside>

<OpenAPIEndpoint {...{"method":"get","path":"/api/v1/markets/{id}/prices","summary":"Get market price history","description":"Get historical price data with OHLC aggregation","parameters":[{"name":"id","in":"path","required":true,"description":"Market ID","schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max data points","schema":{"type":"integer","default":100,"minimum":1,"maximum":1000}},{"name":"start","in":"query","description":"Start time","schema":{"type":"string","format":"date-time"}},{"name":"end","in":"query","description":"End time","schema":{"type":"string","format":"date-time"}},{"name":"interval","in":"query","description":"Time bucket interval (daily, 1day also accepted as aliases for 1d)","schema":{"type":"string","enum":["1min","5min","1hour","1d"],"default":"5min"}},{"name":"sort","in":"query","description":"Sort direction by timestamp","schema":{"type":"string","enum":["asc","desc"],"default":"desc"}},{"name":"page","in":"query","description":"Page number","schema":{"type":"integer","default":1,"minimum":1}},{"name":"per_page","in":"query","description":"Items per page","schema":{"type":"integer","default":100,"minimum":1,"maximum":500}}],"responses":[{"status":"200","description":"Paginated price history","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"price":{"type":"number"},"volume":{"type":["number","null"]},"ohlc":{"type":["object","null"],"properties":{"open":{"type":"number"},"high":{"type":"number"},"low":{"type":"number"},"close":{"type":"number"}}},"spread":{"type":["number","null"]},"sources":{"type":["object","null"],"additionalProperties":true},"constituents":{"type":["array","null"],"items":{"type":"object","properties":{"market_id":{"type":"string"},"price":{"type":"number"},"weight":{"type":"number"}}}}}}},"meta":{"type":"object","properties":{"total":{"type":"integer"},"page":{"type":"integer"},"per_page":{"type":"integer"},"total_pages":{"type":"integer"},"has_next":{"type":"boolean"},"has_prev":{"type":"boolean"}}}}},"examples":[]}],"security":[{"name":"bearerAuth","type":"http","scheme":"bearer","in":"header","description":"Clerk JWT Bearer token"}],"servers":[{"url":"https://api.adjacent.markets","description":"API server"}]}} />
