-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal error when one of the symbols returns only one row #23
Comments
Hi Renan, The idea is for the user to have more care regarding which tickers are being inputed. Since there isn't much you can do with a one row dataframe, perhaps you should remove DNAI11 from the requested ticker vector? |
yes, I agree this ticker is problematic, I don't know why but yahoo finance sometimes it returns more data and sometimes no data for this ticker. however my script was already dealing with the missing data, and for some use cases just having the latest price is already useful so if possible I would like it return whatever data it got even if its just a single row. otherwise I can split the call in two parts, but I will need to change my script to keep track of which tickers are problematic. |
I can see your reasoning, and I agree with it. I'll make it a warning (and not an error). This will make sure the rest of the data is returned. I'll leave this issue open and make the changes next week. |
thanks, to be clear, I think the default behavior as it works now is good and useful but, as I understand, if I set the option |
Merge branch 'main' of github.com:ropensci/yfR # Conflicts: # NEWS.md
Ok, fixed. Try it out: remotes::install_github("ropensci/yfR") |
works great. thanks !
|
hello, I recently changed my code to use this package instead of BatchGetSymbols but the behavior changed, on BatchGetSymbols if one of the symbols don't return enough data it will be NA on the result table, on yf_get I get this fatal error below, and none of the other symbols data is returned, is there any way to use yf_get and still get the results of the other symbols ?
I tried setting thresh_bad_data=0 and do_complete_data=TRUE but that still results in a fatal error.
and this is the function call:
thanks.
The text was updated successfully, but these errors were encountered: