below are the fields returned as response instrument_token, exchange_token, tradingsymbol, name, last_price, expiry, strike, tick_size, lot_size, instrument_type, segment, exchange
last_price has most recent price of an instrument except for the instrument type EQ.
@pranksterguru, getInstruments is generated only once day before market to get list of tradingsymbols that are being traded for the day. It is not meant for fetching price. Its response is around 6.5MB, it is redundant to keep calling it all day. Are you sure, you want to keep parsing 6.5MB of data every minute or second?
i want to hit the getinstrument API just once before the market start around 8 am... i want to prepare my strategies depending on last traded price of all the instruments. i dont want to hit the getquote api for the number of instruments that nse and bse has..!
yes this will be really helpful to work on strategies, as it is difficult to use WebSocket if we need to get for example 500 instruments last traded price because you have set limit for symbol subscription to 200, if you could provide LTP for EQ as well will be beneficial , you may set limit to 1/min or something grater , so that users will not misuse this for getting live data instead of using WeSocket.
further , is that last_price on the instrument list really the latest price the time when we download it ?
@Shabeershah2002, @pranksterguru, Instrument dump is generated every morning once and the last price field you see is last traded price what we get from the exchange. I would suggest not to rely on it.
Can you elaborate?
below are the fields returned as response
instrument_token, exchange_token, tradingsymbol, name, last_price, expiry, strike, tick_size, lot_size, instrument_type, segment, exchange
last_price has most recent price of an instrument except for the instrument type EQ.
can you send price for EQ also?
getInstruments is generated only once day before market to get list of tradingsymbols that are being traded for the day. It is not meant for fetching price. Its response is around 6.5MB, it is redundant to keep calling it all day.
Are you sure, you want to keep parsing 6.5MB of data every minute or second?
I would suggest, use websockets for live prices.
i dont want to hit the getquote api for the number of instruments that nse and bse has..!
further , is that last_price on the instrument list really the latest price the time when we download it ?
Any update on this ?, will be really helpful if you could provide that ...
but what i have done as a work around is d
Instrument dump is generated every morning once and the last price field you see is last traded price what we get from the exchange. I would suggest not to rely on it.