Comments (6)
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?
from yfr.
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.
from yfr.
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.
from yfr.
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 thresh_bad_data=0
I expected to get whatever data was returned even if its all missing at least thats how I understood BatchGetSymbols works.
from yfr.
Ok, fixed. Try it out:
remotes::install_github("ropensci/yfR")
from yfr.
works great. thanks !
Fetching data for DNAI11.SA
! - not cached
✔ - got 1 valid rows (2022-12-06 --> 2022-12-06)
✔ - got 2% of valid prices -- Feliz que nem lambari de sanga!
from yfr.
Related Issues (16)
- Unstated dependency version? HOT 4
- Market Cap + Sector? HOT 1
- Coming Back to the Downloading datas Issue HOT 6
- issue with log returns
- Cant find SP500 tickers with "-"
- error when downloading 1 trading day
- Suggestion: remove/change curl::has_internet() from yfR HOT 4
- `'all_of' is not an exported object` if tidyr version < 1.2.0 HOT 2
- Error with get_collection_data() HOT 1
- Backward compatibility with R 4.02 HOT 2
- yf api limits? HOT 1
- missing arguments in yf_collection_get()
- Price Data Discrepancies HOT 13
- Error in download HOT 6
- Alert users of yf limits HOT 24
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yfr.