You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a fund or ETF, SPY for example:
I would like to add the Expense Ratio (net) (under Summary) or Annual Report Expense Ratio (net) (under profile) to the list of fields that can be scraped. Using my best guess and looking at the html, I added
"Expense Ratio (net)", "Expense Ratio (net)", "annualReportExpenseRatio"
to the end of the variable .yahooQuoteFields in the file getQuote.R. After building the package and try it out, unfortunately I get the following error:
Error in `[.data.frame`(sq, , "regularMarketTime") :
undefined columns selected
Called from: `[.data.frame`(sq, , "regularMarketTime"
Is it possible to get some help on rules for .yahooQuoteFields and is it possible to add new fields to extract new info?
Expected behavior
I expect to get the expense ratio for a fund, SPY for example.
Minimal, reproducible example
syms<-"SPY"what_metrics<- yahooQF(c("Name", "Expense Ratio (net)"))
getQuote(syms, what=what_metrics)
Ah I see. Where can I see the endpoints of this API? I went on Rapid API and found that it is on get-profile endpoint. But that is a different API to the one you use.
Description
For a fund or ETF, SPY for example:
I would like to add the Expense Ratio (net) (under Summary) or Annual Report Expense Ratio (net) (under profile) to the list of fields that can be scraped. Using my best guess and looking at the html, I added
to the end of the variable
.yahooQuoteFields
in the filegetQuote.R
. After building the package and try it out, unfortunately I get the following error:Is it possible to get some help on rules for
.yahooQuoteFields
and is it possible to add new fields to extract new info?Expected behavior
I expect to get the expense ratio for a fund, SPY for example.
Minimal, reproducible example
Session Info
The text was updated successfully, but these errors were encountered: