Market data
Retrieve price history
GET
https://api.q4.sa/v1/prices/{symbol}/historyReturns OHLCV bars for a stock, adjusted for splits, bonus shares and rights issues.
Starter+Intraday intervals need Pro+.
Daily bars go back to the stock’s listing. Intraday bars (1min to 60min) cover 90 days on Pro and 2 years on Business.
The latest bar is marked is_final: false until the closing auction ends.
Authorization
x-api-keyheaderrequiredPath parameters
symbolstringrequiredTadawul symbol, e.g.
2222 for Saudi Aramco. ISINs are accepted too.Query parameters
intervalstringBar size.
One of:
1min5min15min30min60min1d1w1moDefault:
1dfromdateStart date, inclusive (
YYYY-MM-DD).todateEnd date, inclusive (
YYYY-MM-DD).adjustedbooleanAdjust prices and volumes for corporate actions.
Default:
truelimitintegerResults 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.
highintegerHighest price.
lownumberLowest price.
closenumberClosing price.
volumeintegerShares traded.
turnovernumberValue traded, SAR.
tradesintegerNumber of trades.
is_finalbooleanFalse while the bar is still forming.
paginationobjectnext_cursorstringPass as
cursor to get the next page. null on the last page.limitintegerPage size used.
