Value of Change property is always zero Kite API

vibhore
Hi,

I am using Kite API to test out some algorithms, I have subscribed to couple of tokens using web sockets, i can get all the data except for “Change” value which is always coming 0, Is this a bug or is it meant to be something else?

Any clues?

Thanks,
Vibhore
Tagged:
  • sujith
    Can you let us know for which instrument token you are checking this?
  • vibhore
    Its the same for any instrument I have tried so far, I just re-checked for token "11675906" Nifty Future for April.
  • tonystark
    Hi,

    The library returns the values it gets from the WebSocket stream as mentioned here. And change field is applicable for index stocks.

    If you need to get change value for other stocks you can calculate as ClosePrice - LTP. And you will have to subscribe to FULL mode to get ClosePrice.
Sign In or Register to comment.