Skip to main content
GET
/
api
/
v1
/
rates
/
{id}
/
prices
Get rate price history
curl --request GET \
  --url https://v2.api.adj.news/api/v1/rates/{id}/prices \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "timestamp": "2023-11-07T05:31:56Z",
      "price": 123,
      "volume": 123,
      "ohlc": {
        "open": 123,
        "high": 123,
        "low": 123,
        "close": 123
      },
      "spread": 123,
      "sources": 123
    }
  ],
  "total": 123
}
Retrieve historical price data for a specific reference rate.

Path Parameters

id
string
required
The unique reference rate identifier (e.g., pres_2028_d).

Query Parameters

limit
integer
default:100
Maximum number of data points (1-1000).
start
datetime
Start time. Format: ISO 8601.
end
datetime
End time. Format: ISO 8601.
interval
string
default:"5min"
Time bucket: 1min, 5min, 1hour, 1day.

Response

{
  "data": [
    {
      "timestamp": "2026-02-08T00:00:00Z",
      "price": 47.5,
      "ohlc": {
        "open": 46.0,
        "high": 48.5,
        "low": 45.5,
        "close": 47.5
      },
      "spread": 1.2,
      "sources": 2
    }
  ],
  "total": 1
}
FieldTypeDescription
timestampdatetimeStart of the time bucket
pricenumberAverage rate
ohlc.opennumberOpening rate
ohlc.highnumberHighest rate
ohlc.lownumberLowest rate
ohlc.closenumberClosing rate
spreadnumberAverage spread during interval
sourcesintegerNumber of contributing sources

Examples

# Daily history
curl "https://v2.api.adj.news/api/v1/rates/pres_2028_d/prices?interval=1day&limit=30" \
  -H "Authorization: Bearer YOUR_TOKEN"

# Time range
curl "https://v2.api.adj.news/api/v1/rates/pres_2028_d/prices?start=2026-02-01T00:00:00Z&end=2026-02-08T00:00:00Z" \
  -H "Authorization: Bearer YOUR_TOKEN"

Errors

StatusDescription
404Reference rate not found
400Invalid interval

Authorizations

Authorization
string
header
required

Auth0 JWT Bearer token

Path Parameters

id
string
required

Rate ID

Query Parameters

limit
integer
default:100
start
string<date-time>
end
string<date-time>
interval
enum<string>
default:5min
Available options:
1min,
5min,
1hour,
1day,
daily

Response

200 - application/json

Price history

data
object[]
total
integer