[SOLVED] Google Finance does not show last closing price after market hours. It just shows last *traded* price instead of *closing*


This Content is from Stack Overflow. Question asked by Sabha

My query is on stock market of India where I fetch the quotes from =googlefinance function in my google sheet. I was very disappointed to know that the function does not show last closing price. Instead, it shows the last traded price.

Lets take an example of a stock RELIANCE:
=GoogleFinance("NSE:reliance", "price") result is 2498.00 which is incorrect.
Actual closing on Friday, 16 Sep 2022 was 2499.20 as per official National Stock Exchange of India. You may refer to this link for the Close price and the screenshot below

The incorrect quote 2498.00 is the last traded price before market closing
The correct quote is 2499.20 when the markets were closed.

This behavior is common across all stocks of Indian stock market. I have used almost all the parameters those are available in the =googlefinance function but I could not find a way to get the correct stock quote.

Then I decided to scrape the value from the official website using the following without success

<div id="closePrice">2,499.20</div>




I searched a lot of valuable articles on this site and also on google but could not find a solution which would fetch the desired result. Can someone help me with a way to get 2499.20 as a result for RELIANCE stock either using =googlefinance function or by scraping the value from office website?

Thank you.

enter image description here


Only historical prices support close attribute. Use the start date argument to get historical prices and get the last close:


This Question was asked in StackOverflow by Sabha and Answered by TheMaster It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?