Change percentage

Pandiyaraj
Pandiyaraj edited August 2017 in General
Hi

How do i get the change percentage of the instrument token ? without using the API Call, Is Possible to get this?


I need to show the list of instrument token with its change percentage.

Thanks
Pandi

  • sujith
    @Pandiyaraj,
    Change percent = (last price - close price) * 100 / close price
  • Pandiyaraj
    Hi @sujith

    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.
  • sujith
    @Pandiyaraj,
    Price in instrument dump is not updated. The values are obsolete. Use websockets for live market data.
Sign In or Register to comment.