getInstruments() giving last_price as zero

utlsingh
KiteConnect kiteSdk = new KiteConnect("api_key");
kiteSdk.setUserId("User_id");

kiteSdk.getInstruments("NSE");
I am storing the list returned by this call in another list and fetching the last_price of instruments , but it's showing zero all time . There is no problem in code because i am able to fetch all trading symbol using this call only , the only problem is with last_price .
Can anyone help me and tell me why this is happening .

  • sujith
    Hi,
    Can you let us know which API you are using to fetch price?
  • utlsingh
    Java client api's as you can see in the code above .
  • utlsingh
    And let me tell you that i am not downloading the instruments , instead i am fetching data from the list returned by it .
  • sujith
    Instrument dump is a file that is dumped every day morning and it will not be changed until next day.
    You can use this to fetch last price.
Sign In or Register to comment.