Hi, I have fetched the instrument list using api but i see that the last_price is 0 for all equities while it has values for futures and options. why is that?
Hi @beagle1977365, Historical data is an add-on subscription, it doesn't include in the base subscription. you will have to go to developer console and subscribe for it. It will cost you Rs 2000 p/m.
It is just an instrument dump which is updated in the morning before the market opens. You can use websockets for live market data.
file_get_contents(https://api.kite.trade/instruments/historical/5633/minute?from=2017-04-01&to=2017-05-29&api_key=ccccccc&access_token=ccccccc): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
what am i doing wrong?
Historical data is an add-on subscription, it doesn't include in the base subscription. you will have to go to developer console and subscribe for it.
It will cost you Rs 2000 p/m.
Websockets are included in the base package. You can use it with the base subscription.