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

---
title: "Export index price history"
description: "Export historical index values as a CSV or TSV file download. Columns: timestamp, price."
api: "GET /api/v1/export/indices/{id}/prices.{ext}"
gridGap: 30
---

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

<OpenAPIEndpoint {...{"method":"get","path":"/api/v1/export/indices/{id}/prices.{ext}","summary":"Export index price history","description":"Export historical index values as a CSV or TSV file download. Columns: timestamp, price.","parameters":[{"name":"id","in":"path","required":true,"description":"Index ID","schema":{"type":"string"}},{"name":"ext","in":"path","required":true,"description":"Export file format","schema":{"type":"string","enum":["csv","tsv"]}},{"name":"limit","in":"query","description":"Max data points (clamped to 1-10000 for exports)","schema":{"type":"integer","default":100,"minimum":1,"maximum":10000}},{"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"}}],"responses":[{"status":"200","description":"CSV/TSV file of index price history","examples":[]},{"status":"400","description":"Invalid format or interval","schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"}}},"examples":[]}],"security":[{"name":"bearerAuth","type":"http","scheme":"bearer","in":"header","description":"Clerk JWT Bearer token"}],"servers":[{"url":"https://api.adjacent.markets","description":"API server"}]}} />
