Skip to content
Sign up

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/history
curl --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
  ]
}
rangePointsStep
1h601 minute
1d9615 minutes
1w1681 hour
1m1804 hours
1y3651 day

Query parameters

  • symbolstringrequired

    The instrument's symbol, such as BTC, ASML, EURUSD or XAU.

  • rangestringrequired

    The span, ending now.

    One of1h1d1w1m1y

Response

  • symbolstring

    The instrument's symbol.

  • rangestring

    The span you asked for.

  • sourcestring

    Where the prices come from.

  • pointsobject[]

    The prices, oldest first.