Skip to main content
Export historical price data for a market as CSV or TSV.

Path Parameters

id
string
required
The unique market 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, avg_price, min_price, max_price, close_price

Examples

# Export last 1000 hourly prices as CSV
curl -O "https://v2.api.adj.news/api/v1/export/markets/SENATECO-26-R/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/markets/SENATECO-26-R/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/markets/SENATECO-26-R/prices.csv?interval=1day&limit=365" \
  -H "Authorization: Bearer YOUR_TOKEN" -o market_prices.csv

Errors

StatusDescription
400Invalid format or interval
401Missing or invalid authorization
404Market not found