Coder Social home page Coder Social logo

broke? about robinhood-portfolio HOT 10 CLOSED

djv2 avatar djv2 commented on August 30, 2024
broke?

from robinhood-portfolio.

Comments (10)

omdv avatar omdv commented on August 30, 2024

Most likely explanation is that RH changed the symbol for one of your stocks, so symbols saved locally do not match the RH API. If you use docker - you can try stopping and deleting the container (don't delete image to avoid re-download) and start a new container. It should pull the updated list of symbols.

Alternatively, if you want, post the list of stocks/symbols you have and I can check each of them manually.

from robinhood-portfolio.

djv2 avatar djv2 commented on August 30, 2024

Not using docker, deployed both in Windows & Linux machine. Any other thoughts/advice to fix? I haven't had this issue with other RH py scripts

from robinhood-portfolio.

omdv avatar omdv commented on August 30, 2024

I suspect the issue was that there were no dividend payouts, so dataframe was empty and as a result had no "instrument" field. Could you pull the latest version and try again?

from robinhood-portfolio.

djv2 avatar djv2 commented on August 30, 2024

Thanks for your quick reply. Making progress, the error disappears but now it is stuck downloading market data...

Downloading dividends from Robinhood
Downloading orders from Robinhood
Downloading market data for 20171108-20180618

It's been downloading for 30min+ now, doubt it really takes that long?

from robinhood-portfolio.

omdv avatar omdv commented on August 30, 2024

No, no way. Likely get's stuck somewhere because of empty dividends info. If I don't have ideas - may need to add verbosity to understand where it get's stuck.

from robinhood-portfolio.

djv2 avatar djv2 commented on August 30, 2024

Found where it gets stuck...

pf = web.DataReader(tickers, 'morningstar', start_date, end_date)

Maybe there's a ticker morningstar doesn't like?

from robinhood-portfolio.

omdv avatar omdv commented on August 30, 2024

Ah, it's totally possible. Getting stock data nowadays is difficult - I had to switch to morningstar after google killed it's API. You can check some more exotic tickers on their page.

Just to be sure, it is not something else - you can add pause=1.0 to that call, it is in folder backend/market_data.py on line 41. I suspect that if you have a large list of tickers to pull morningstar may not like it, so we can try to increase the delay between requests. If this does not work - then it is likely some exotic ticker.

from robinhood-portfolio.

djv2 avatar djv2 commented on August 30, 2024

I believe I found the exotic ticker, SESN. What do I do now? It's a valid ticker...

from robinhood-portfolio.

omdv avatar omdv commented on August 30, 2024

Yes, you are right, SESN does not go through, although I can see it on morningstar page actually - https://www.morningstar.com/stocks/xnas/sesn/quote.html. I use external library to get quotes - I'll try to see why it is happening.

from robinhood-portfolio.

omdv avatar omdv commented on August 30, 2024

Submitted issue to pandas-datareader. I looked at their code and morningstar url and don't see anything which could explain it. Hopefully they can address it. Cheers.

from robinhood-portfolio.

Related Issues (12)

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.