雅虎财经的股息历史

Dividend history from Yahoo finance

有没有方便的方法从雅虎财经获取指定公司的股息历史记录API?比如历史数据可以通过以下link获取,条件可变

https://query1.finance.yahoo.com/v7/finance/download/code_name?period1=from&period2=to&interval=1d&events=history

满足这些条件后,看起来像:

https://query1.finance.yahoo.com/v7/finance/download/CBA.AX?period1=0&period2=1625841418&interval=1d&events=history

给出的数据为 Date Open High Low Close AdjClose Volume。我想得到的就是这个,不过是为了分红。 IE。 Date Amount在指定时间段内。

您可以使用 R 轻松获取股息信息。 如果您想要来自 Yahoo 的信息,请使用 quantmod 库。要使用的函数是getDividends("CBA.AX")

library(quantmod)
getDividends("CBA.AX")

您可以使用此查询获取过去的股息,例如 Apple

https://finance.yahoo.com/quote/AAPL/history?period1=from&period2=to&interval=div%7Csplit&filter=div&frequency=1d&includeAdjustedClose=true

要获取 csv 文件,请将其用于 Apple

https://query1.finance.yahoo.com/v7/finance/download/AAPL?period1=From&period2=To&interval=1d&events=div&includeAdjustedClose=true

以 Apple 为例再次尝试去年的股息

https://query1.finance.yahoo.com/v7/finance/download/AAPL?period1=1594598400&period2=1626134400&interval=1d&events=div&includeAdjustedClose=true