I calculated percentage using that formula. But from the instruments API list , response is like below "8969218,35036,BANKNIFTY17OCT23200CE,,2298.35,2017-10-26,23200.0,0.05,40,CE,NFO-OPT,NFO " In this, I get the last price amount, Is it possible to give the close price the same Instruments API List..
Because i want to display all the instruments with its change percentage in list.
Change percent = (last price - close price) * 100 / close price
I calculated percentage using that formula. But from the instruments API list , response is like below "8969218,35036,BANKNIFTY17OCT23200CE,,2298.35,2017-10-26,23200.0,0.05,40,CE,NFO-OPT,NFO
" In this, I get the last price amount, Is it possible to give the close price the same Instruments API List..
Because i want to display all the instruments with its change percentage in list.
Price in instrument dump is not updated. The values are obsolete. Use websockets for live market data.