Market data
Retrieve index history
GET
https://api.q4.sa/v1/indices/{index}/historyReturns daily or intraday values for TASI, Nomu and the sector indices.
Starter+Intraday intervals need Pro+.
Authorization
x-api-keyheaderrequiredPath parameters
indexstringrequiredTASI, NOMU, or a sector index such as TBNI (banks).Query parameters
intervalstringBar size.
One of:
1min5min15min60min1d1w1moDefault:
1dfromdateStart date, inclusive (
YYYY-MM-DD).todateEnd date, inclusive (
YYYY-MM-DD).limitintegerResults per page.
Default:
500 · Range: 1–2000cursorstringThe
next_cursor from the previous page. Omit it for the first page.Response
dataobject[]The result.
datedateTrading date (Riyadh).
opennumberOpening price.
highnumberHighest price.
lownumberLowest price.
closenumberClosing price.
volumeintegerShares traded.
turnoverintegerValue traded, SAR.
paginationobjectnext_cursorstringPass as
cursor to get the next page. null on the last page.limitintegerPage size used.
