Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.adj.news/llms.txt

Use this file to discover all available pages before exploring further.

Export historical price data for an index as CSV or TSV.

Path Parameters

id
string
required
The unique index identifier.
ext
string
required
File format: csv or tsv.

Query Parameters

limit
integer
default:100
Maximum number of data points (1-10,000).
start
datetime
Start time for the price history window. Format: ISO 8601.
end
datetime
End time for the price history window. Format: ISO 8601.
interval
string
default:"5min"
Time bucket for aggregation. Options: 1min, 5min, 1hour, 1day.
sort
string
default:"desc"
Sort order: asc or desc.

Response

Returns a file download with Content-Disposition: attachment. Max 10,000 rows. Columns: timestamp, price

Examples

# Export last 1000 hourly prices as CSV
curl -O "https://v2.api.adj.news/api/v1/export/indices/upfi-senate-26/prices.csv?interval=1hour&limit=1000" \
  -H "Authorization: Bearer YOUR_TOKEN"

# Export a date range as TSV
curl -O "https://v2.api.adj.news/api/v1/export/indices/upfi-senate-26/prices.tsv?start=2026-02-01T00:00:00Z&end=2026-02-08T00:00:00Z" \
  -H "Authorization: Bearer YOUR_TOKEN"

# Save to file
curl "https://v2.api.adj.news/api/v1/export/indices/upfi-senate-26/prices.csv?interval=1day&limit=365" \
  -H "Authorization: Bearer YOUR_TOKEN" -o index_prices.csv

Errors

StatusDescription
400Invalid format or interval
401Missing or invalid authorization