Operations 3
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
GET
/v3/historical-candle/{instrumentKey}/{unit}/{interval}/{to_date}
Get custom-interval candles up to an end date · Historical candle data
#
Ask an LLM
“Can I get candles in custom units like 3 minutes or 2 hours up to an end date?”
“How do I request historical bars with a unit and interval ending on a date?”
Tell an agent
Get {interval} {unit} candles for {instrumentKey} up to {to_date}.
Pull {instrumentKey} bars sized {interval} {unit} ending on {to_date}.
GET
/v3/historical-candle/{instrumentKey}/{unit}/{interval}/{to_date}/{from_date}
Get custom-interval candles for a date range · Historical candle data
#
Ask an LLM
“How do I fetch 5-minute or 4-hour candles between two dates?”
“Can I choose both the time unit and interval size for a historical date range?”
Tell an agent
Get {interval} {unit} candles for {instrumentKey} from {from_date} to {to_date}.
Download {instrumentKey} OHLC in {interval} {unit} bars between {from_date} and {to_date}.
GET
/v3/historical-candle/intraday/{instrumentKey}/{unit}/{interval}
Get today's candles in a custom interval · Intra day candle data
#
Ask an LLM
“How do I get today's intraday bars in a custom size like 3 minutes?”
“What has a stock done so far today in custom unit and interval candles?”
Tell an agent
Get today's {interval} {unit} intraday candles for {instrumentKey}.
Show the current session for {instrumentKey} in {interval} {unit} bars.
Documentation
Documentation
https://upstox.com/developer/api-documentation/open-api
APIReference
https://upstox.com/developer/api-documentation/api-overview
GettingStarted
https://upstox.com/developer/api-documentation/installing-sdk
Authentication
https://upstox.com/developer/api-documentation/authentication