Market data
Get price history
An instrument's price over the last hour, day, week, month or year, at an even step that suits a chart.
GET
/ api/ v1 / markets/ historycurl --request GET \
--url "https://reirex.com/api/v1/markets/history?symbol=BTC&range=1d" \
--header "Accept: application/json"200 OKapplication/json
{
"symbol": "BTC",
"range": "1d",
"source": "live",
"points": [
{
"t": "2026-10-13T16:14:00.000Z",
"p": 73500
},
{
"t": "2026-10-13T16:29:09.474Z",
"p": 73555.4
},
{
"t": "2026-10-13T16:44:18.948Z",
"p": 73609.1
},
// 93 more
]
}range | Points | Step |
|---|---|---|
1h | 60 | 1 minute |
1d | 96 | 15 minutes |
1w | 168 | 1 hour |
1m | 180 | 4 hours |
1y | 365 | 1 day |
Query parameters
symbolstringrequiredThe instrument's symbol, such as
BTC,ASML,EURUSDorXAU.rangestringrequiredThe span, ending now.
One of
1h1d1w1m1y
Response
symbolstringThe instrument's symbol.
rangestringThe span you asked for.
sourcestringWhere the prices come from.
pointsobject[]The prices, oldest first.

