For the complete documentation index, see llms.txt. This page is also available as Markdown.

Ticker

Return broker historical candles in JSON or ticker-oriented plain text.

Endpoint

GET /api/v1/ticker/<string:symbol>

Example:

curl --get 'http://127.0.0.1:5000/api/v1/ticker/NSE:RELIANCE' \
  --data-urlencode 'apikey=<your_app_apikey>' \
  --data-urlencode 'interval=D' \
  --data-urlencode 'from=2026-07-01' \
  --data-urlencode 'to=2026-07-10' \
  --data-urlencode 'format=json'

Query Parameters

Parameter
Required
Description

apikey

Yes

OpenAlgo API key

interval

No

History interval; defaults to D

from

Yes

Start date in YYYY-MM-DD

to

Yes

End date in YYYY-MM-DD

format

No

json or txt; defaults to json

interval accepts the same values as /history because the handler validates the assembled request with HistorySchema. from and to are mapped onto that schema's start_date and end_date, so both must be YYYY-MM-DD strings.

This is a GET resource reading request.args, so unrecognized query parameters are ignored rather than rejected. adjusted and sort appear in the route's Swagger metadata but nothing reads them; passing either has no effect.

The path must contain one colon. If it does not, the implementation falls back to NSE:RELIANCE; callers should not rely on that fallback.

JSON Response

format=txt returns comma-separated plain-text rows. Daily rows are Ticker,Date,Open,High,Low,Close,Volume; intraday rows also include time after the date.

The handler restricts large date ranges according to interval before calling the broker. This endpoint always reads the broker API; use /history with source: "db" for Historify data.

Back to: API documentation

Last updated