简体   繁体   English

谷歌表格、雅虎财经、价格和股息数据

[英]google sheets,yahoo finance,price and dividend data

I created my own international portfolio tracker / dividend tracker through google sheets & yahoo finance.我通过谷歌表格和雅虎财经创建了自己的国际投资组合跟踪器/股息跟踪器。

The problem with international stocks is that you often cannot simply use the integrated data from google finance.国际股票的问题在于,您通常不能简单地使用来自谷歌金融的综合数据。 KO (coca cola) is easy, CCC3.DE (also coca cola) cannot be found on google finance. KO(可口可乐)很简单,CCC3.DE(也是可口可乐)在谷歌财经上找不到。 suddenly some formulas stop working for some of the tickers.突然,一些公式对某些代码停止工作。

For Example AD.AS does work but ccc3.de does not work.例如 AD.AS 确实有效,但 ccc3.de 无效。

For price is use;因为价格就是使用; A1 = "CCC3.DE" or "AD.AS"

  =IFNA(VALUE(IMPORTXML("https://finance.yahoo.com/quote/" &A1, "//*[@class=""D(ib) Mend(20px)""]/span[1]")))

For dividend amount I use;对于我使用的股息金额;

=split(IMPORTXML(concatenate("http://finance.yahoo.com/quote/",index(split((E9&F9&G9),":"),0,2)),$F$22),"()"))/K9)))

It seems that Yahoo changed some things in their website and it resulted to the import formula not to work anymore for some of the webpage in Yahoo Finance as well as for some tickers.雅虎似乎改变了他们网站上的一些东西,导致导入公式不再适用于雅虎财经的一些网页以及一些股票代码。 This is the result of the IMPORTXML command for the CCC3.DE ticker.这是 CCC3.DE 代码的 IMPORTXML 命令的结果。

在此处输入图像描述

For now, I suggest finding another website/data source that will give you the same information that you need for those unavailable/unscrapeable tickers.现在,我建议找到另一个网站/数据源,它可以为您提供与那些不可用/不可抓取的代码相同的信息。 Another option would be to wait for yahoo to fix this issue.另一种选择是等待雅虎解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM