Coder Social home page Coder Social logo

Comments (6)

msperlin avatar msperlin commented on August 28, 2024

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.

rvalieris avatar rvalieris commented on August 28, 2024

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.

msperlin avatar msperlin commented on August 28, 2024

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.

rvalieris avatar rvalieris commented on August 28, 2024

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.

msperlin avatar msperlin commented on August 28, 2024

Ok, fixed. Try it out:

remotes::install_github("ropensci/yfR")

from yfr.

rvalieris avatar rvalieris commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.