business-science/tidyquant

key ratios no longer works

Open

#125 opened on Mar 28, 2019

View on GitHub
 (23 comments) (0 reactions) (0 assignees)R (174 forks)batch import
help wanted

Repository metrics

Stars
 (828 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

library(tidyquant)

aapl_key_ratios <- tq_get("AAPL", get = "key.ratios")

Warning messages: 1: x = 'AAPL', get = 'key.ratios': Error in UseMethod("as_list"): no applicable method for 'as_list' applied to an object of class "NULL"

2: x = 'AAPL', get = 'key.ratios': Error in eval(lhs, parent, parent): object 'key_ratios_bind' not found

appears these URLs

http://financials.morningstar.com/ajax/ReportProcess4CSV.html?t=AAPL&reportType=bs&period=3&dataType=A&order=asc&columnYear=10&number=3

or

http://financials.morningstar.com/finan/ajax/exportKR2CSV.html?&callback=?&t=:AAPL&region=usa&culture=en-US&cur=&order=asc

no longer work to scrape the data files. However the option to download key ratios/statements still exists, i assume the URL has been changed.

Contributor guide