I am trying to import stock real-time price, real-time volume and average volume in Google sheet from Yahoo Finance but not sure about XPath to be used for same.
for example, for URL
https://sg.finance.yahoo.com/quote/AMZN
under summary tab:
realtime price: 1910.21
volume: https://sg.finance.yahoo.com/quote/AMZN
avg. volume: 4,406,091
here I tried to modify below code but not sure about XPath
=INDEX(IMPORTXML("https://sg.finance.yahoo.com/quote/AMZN","//div[@id='quote-header-info']/div[last()]/div[1]"),1)