Generate historical adjusted closing prices in R

Hi,

I am using the R package to pull data and would like to pull historical data fields for specified dates like adjusted closing prices and volumes. I have tried:

get_timeseries(list("MSFT.O","VOD.L","IBM.N"),list("*"),"2016-01-01T15:04:05","2016-01-10T15:04:05","daily")

and included the TR.PriceClose field but it fails.


Thanks.

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @Charlotte.vanTiddens

    Typically, the get_timeseries method supports HIGH, CLOSE, LOW, OPEN, COUNT, and VOLUME fields.

    1650522167776.png


    It doesn't support TR.xxx fields. To retrieve TR.xxx fields, you need to use the get_data method.

    get_data(list("MSFT.O","VOD.L","IBM.N"), 
             fields=list('TR.ClosePrice.Date','TR.ClosePrice'),
             parameters=list('SDate'='2016-01-01','EDate'='2016-01-10'))
             


    1650522464875.png



Answers