Hi, I was just wondering if there is an option to get the difference between 'Day start Price' and current Tick Price for any scrip without subscribing to historical data.
For the time being there is no requirement to subscribe to historical data for me except this tiny 'good to have' requirement.
I am afraid, that seems to me as if we are calculating that specific tick's Change percentage. I want to have the change of that scrip since that specific day's 9:15 AM price (the way Zerodha shows the change since opening price). That way I can ignore gapup or gapdown measurement errors.
Otherwise I see another remote possibility of downloading the all script details data. That seems to have a field last price for all the scrips along with instrument number, lot size etc... but this too is not always having a valid value.
The instrument dump will not have an updated last price. All the trading platforms display change based on the previous day's close price including Kite. If you need to calculate change based on 09:15 price then you need to record that price and calculate change based on that value. BTW, if an instrument is not liquid then you might see the first tick at 09:16 or may be at 09:20.
I am fine with the last day closure price as well. But the question is how to get the historical data of 9:15 or 9:16 of that day without the historical data subscription.
You can check out this thread.
Otherwise I see another remote possibility of downloading the all script details data. That seems to have a field last price for all the scrips along with instrument number, lot size etc... but this too is not always having a valid value.
If you need to calculate change based on 09:15 price then you need to record that price and calculate change based on that value. BTW, if an instrument is not liquid then you might see the first tick at 09:16 or may be at 09:20.
You can get open price of the day(open at 09:08) using OHLC Quote call APIs, look for Open price in the response.
However I now see the streaming data also has this information. So the "Open" data in streaming data is actually day Open.
Yeah, that's also the open price of the day.