Google 表格中 googlefinance 函数支持的股票代码文档

Documentation for ticker symbols supported by googlefinance function in Google Sheets

Google 表格中的 GOOGLEFINANCE 功能允许您查找股票或工具的价格(或其他属性)。

https://support.google.com/docs/answer/3093281?hl=en

但是,它支持的符号的文档很少。

例如,this fund has a symbol "GB00B59G4Q73", and searching for this in Yahoo finance works.

但是这个和符号“0P0000KSP6.L”在 Google 表格中都不起作用,给出错误 "When evaluating GOOGLEFINANCE, the query for the symbol: 'GB00B59G4Q73' returned no data."

如何确定我是否使用了正确的符号,或者该函数是否不支持该符号?

这是您的“官方文档”:

ticker - The ticker symbol for the security to consider.

  • Note: Reuters Instrument Codes are no longer supported. For example, ticker 123.TO or XYZ.AX would not work. Instead, use TSE:123 or ASX:XYZ.

  • Recommended: Add an exchange to avoid discrepancies. For example, use “NASDAQ:GOOG” instead of “GOOG." If an exchange is not specified, GOOGLEFINANCE will use its best judgement to choose one for you.

这意味着您最好去 https://www.google.com/finance 并在那里搜索您的代码而不是雅虎或其他不受支持的供应商


但是你总是可以从雅虎上抓取它:

=SUBSTITUTE(SPLIT(REGEXEXTRACT(QUERY(IMPORTXML(
 "https://uk.finance.yahoo.com/quote/0P0000KSP6.L?p=0P0000KSP6.L&.tsrc=fin-srch", "//*"), 
 "select Col1 
  where Col1 contains 'Vanguard FTSE Dev World ex UK Equity Index AccLSE - LSE' 
  limit 1 
  offset 8", 0), "GBp(.*)"), "-"), ",", )*1

添加到之前的答案中,Google 的金融免责声明中有关于支持的交易所的数据 -> https://www.google.com/intl/en/googlefinance/disclaimer/