Skip to main content
GET
/
api
/
v1
/
markets
/
{id}
/
prices
Get market price history
curl --request GET \
  --url https://v2.api.adj.news/api/v1/markets/{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 market with optional OHLC aggregation.

Path Parameters

id
string
required
The unique market identifier.

Query Parameters

limit
integer
default:100
Maximum number of data points (1-1000).
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.

Response

{
  "data": [
    {
      "timestamp": "2026-02-08T00:00:00Z",
      "price": 5.0,
      "ohlc": {
        "open": 4.0,
        "high": 6.0,
        "low": 4.0,
        "close": 5.0
      }
    }
  ],
  "total": 1
}
FieldTypeDescription
timestampdatetimeStart of the time bucket
pricenumberAverage price during the interval
ohlc.opennumberOpening price
ohlc.highnumberHighest price
ohlc.lownumberLowest price
ohlc.closenumberClosing price

Examples

# Hourly OHLC
curl "https://v2.api.adj.news/api/v1/markets/SENATECO-26-R/prices?interval=1hour&limit=24" \
  -H "Authorization: Bearer YOUR_TOKEN"

# Daily candles
curl "https://v2.api.adj.news/api/v1/markets/SENATECO-26-R/prices?interval=1day&limit=30" \
  -H "Authorization: Bearer YOUR_TOKEN"

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

Errors

StatusDescription
404Market not found
400Invalid interval

Authorizations

Authorization
string
header
required

Auth0 JWT Bearer token

Path Parameters

id
string
required

Market ID

Query Parameters

limit
integer
default:100

Max data points

start
string<date-time>

Start time

end
string<date-time>

End time

interval
enum<string>
default:5min

Time bucket

Available options:
1min,
5min,
1hour,
1day,
daily

Response

200 - application/json

Price history

data
object[]
total
integer