Price history (OHLCV)
const url = 'https://api.tapetide.com/v1/stocks/example/price?days=365&interval=daily&end_date=2025-12-31';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.tapetide.com/v1/stocks/example/price?days=365&interval=daily&end_date=2025-12-31' \ --header 'Authorization: Bearer <token>'Row-per-day OHLCV with delivery %. days sets the lookback window (default 365, max 2000); interval is the bar size (daily or weekly). meta.window states the window actually served and next_cursor gives the end_date for the preceding page, so a multi-year series is paged with end_date until has_more is false.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Stock or index symbol, e.g. “RELIANCE”, “TCS”, “NIFTY”. Percent-encode symbols containing “&” (M%26M).
Query Parameters
Section titled “Query Parameters”Lookback window in calendar days (default 365, max 2000).
Example
365Bar size: daily (default) or weekly. Intraday bars are not served here.
Inclusive YYYY-MM-DD upper bound; the paging cursor. Pass meta.window.next_cursor from the previous page.
Example
2025-12-31Responses
Section titled “Responses”OK. Costs one request unit.
object
The document. Shape is route-specific and never truncated.
Paging and window information where the route pages (e.g. window.next_cursor on price history).
object
When this response was assembled (UTC).
The operationId that served it.
Example generated
{ "data": "example", "meta": { "as_of": "2026-04-15T12:00:00Z", "route": "example" }}Headers
Section titled “Headers”Unix seconds when the binding quota window resets (IST boundaries).
Malformed or out-of-range parameter. Not charged.
object
object
object
Example
{ "error": { "code": "authentication_required" }}Missing or invalid bearer token.
object
object
object
Example
{ "error": { "code": "authentication_required" }}The symbol, index or document does not exist. Not charged.
object
object
object
Example
{ "error": { "code": "authentication_required" }}Per-minute burst cap or plan quota reached.
object
object
object
Example
{ "error": { "code": "authentication_required" }}Headers
Section titled “Headers”Unix seconds when the binding quota window resets (IST boundaries).
A data dependency was unavailable. Not charged.
object
object
object
Example
{ "error": { "code": "authentication_required" }}