How i can get Live Nifty Index & Banknifty Prices ?which Instrument key need to use?
As they given example for BSE_INDEX as “BSE_INDEX|AUTO”,
So what values are for NIFTY & BANKNIFTY
How i can get Live Nifty Index & Banknifty Prices ?which Instrument key need to use?
As they given example for BSE_INDEX as “BSE_INDEX|AUTO”,
So what values are for NIFTY & BANKNIFTY
Hi @HritikRD,
For information about the instruments, you can download the instrument json files and search for trading_symbol (Instruments | Upstox Developer API)
Below is the instrument details for BANKNIFTY
and NIFTY
from the json file.
{
"segment": "NSE_INDEX",
"name": "Nifty Bank",
"exchange": "NSE",
"instrument_type": "INDEX",
"instrument_key": "NSE_INDEX|Nifty Bank",
"trading_symbol": "BANKNIFTY"
}
{
"segment": "NSE_INDEX",
"name": "Nifty 50",
"exchange": "NSE",
"instrument_type": "INDEX",
"instrument_key": "NSE_INDEX|Nifty 50",
"trading_symbol": "NIFTY"
}
You can use the market quotes API for LTP value, please find the API documentation here (LTP Quotes | Upstox Developer API) for LTP Quotes
Also, please do checkout the sample example code request document for further implementation details (LTP Market Quotes | Upstox Developer API)
Do let us know if it helps, Thanks!