如何使用 GOOGLEFINANCE 在 Google Sheets 中获取中国股票市场指数 (SSE)?

The*_*nil 4 google-finance google-sheets web-scraping google-sheets-formula google-sheets-importxml

我到处搜索,但没有找到方法。是为了=Googlefinance("ticker"),中国的上证指数是否可以作为谷歌金融的股票代码,用于谷歌表格?

pla*_*er0 5

你试过了吗:

=GOOGLEFINANCE("SSE", "price")

=GOOGLEFINANCE("SSE", "all", TODAY()-7, TODAY(), "daily")

=GOOGLEFINANCE("SSE", "price", TODAY()-7, TODAY(), "daily")
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明


也许:

=GOOGLEFINANCE("LON:SSE", "price")

=GOOGLEFINANCE("LON:SSE", "all", TODAY()-7, TODAY(), "daily")
Run Code Online (Sandbox Code Playgroud)

0


更新:

=REGEXEXTRACT(QUERY(IMPORTXML("https://finance.yahoo.com/quote/000001.SS/", "//*"), 
 "where Col1 contains '000001.SS - SSE' limit 1 offset 2", 0), "\d+,\d+\.\d+")*1
Run Code Online (Sandbox Code Playgroud)

0

或其他来源:

=IMPORTXML("https://www.bloomberg.com/quote/SHCOMP:IND/", 
 "//span[@class = 'priceText__1853e8a5']")*1
Run Code Online (Sandbox Code Playgroud)

0

  • 应该是 SHA:000001 但它在 GS 中不起作用:https://i.stack.imgur.com/W5KJq.png (3认同)